Display v-for items within a single textareaarray items as models in vuejsPassing data from a textarea to a function and routinghow to get data from single row by user id laravel 5.4Can't pass Vue variable to hidden input v-model in view(v-for)Unexpected behaviour removing a child component (row)Vue.js single file component for loop errorHow to pass values to vue data from laravel blade?How to get the values from the DOM controls when the models are created dynamically using vuejsdata received from laravel controller not updating to vue variableInsert Select Option Form Laravel - Vue
Correct notation for guitar fingerstyle
When I press the space bar it deletes the letters in front of it
My previous employer committed a severe violation of the law and is also being sued by me. How do I explain the situation to future employers?
Estimates on number of topologies on a finite set
QR codes, do people use them?
Why is a mixture of two normally distributed variables only bimodal if their means differ by at least two times the common standard deviation?
Is it possible for a character at any level to cast all 44 Cantrips in one week without Magic Items?
How do I explain that I don't want to maintain old projects?
Why does Trump want a citizenship question on the census?
Who buys a weak currency?
Four ships at the ocean with the same distance
Why different specifications for telescopes and binoculars?
No Torah = Revert to Nothingness?
Number of states in taxi environment (Dietterich 2000)
What's it called when the bad guy gets eaten?
Did the Ottoman empire suppress the printing press?
Category-theoretic treatment of diffs, patches and merging?
What do you call a situation where you have choices but no good choice?
Hail hit my roof. Do I need to replace it?
Run Bash scripts in folder all at the same time
Writing an ace/aro character?
Is it okay to use open source code to do an interview task?
Reference request: quantifier elimination test
Moving millions of files to a different directory with specfic name patterns
Display v-for items within a single textarea
array items as models in vuejsPassing data from a textarea to a function and routinghow to get data from single row by user id laravel 5.4Can't pass Vue variable to hidden input v-model in view(v-for)Unexpected behaviour removing a child component (row)Vue.js single file component for loop errorHow to pass values to vue data from laravel blade?How to get the values from the DOM controls when the models are created dynamically using vuejsdata received from laravel controller not updating to vue variableInsert Select Option Form Laravel - Vue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Need to display the looped values within a single textarea.
I'm using Laravel and Vue it displays the values seperately within there own textarea.
<textarea>
<div v-for="(item, index) in form.items" :key="index">
<div class="form-group">
<input type="text"
class="form-control"
v-model="form.items[index].value"
:id="'item-' + index">
</div>
</div>
</textarea>
I expect the output to display the values on a seperate line within the textarea to make the values editable.
laravel vue.js vuejs2
add a comment |
Need to display the looped values within a single textarea.
I'm using Laravel and Vue it displays the values seperately within there own textarea.
<textarea>
<div v-for="(item, index) in form.items" :key="index">
<div class="form-group">
<input type="text"
class="form-control"
v-model="form.items[index].value"
:id="'item-' + index">
</div>
</div>
</textarea>
I expect the output to display the values on a seperate line within the textarea to make the values editable.
laravel vue.js vuejs2
is that any specific reason for using textarea? simply using multile input boxes without text area
– dagalti
Mar 25 at 23:51
Eventually I would like a WYSIWYG, its going to be user facing its currently pulling say 10 values and I list kindof want to list them out so the user can edit and save them. :)
– Henshall
Mar 25 at 23:58
try condenteditable div. you cant do this with textarea
– dagalti
Mar 26 at 0:59
you want a singletextarea
to display multiple values?
– Kapitan Teemo
Mar 26 at 1:40
displaying content like this inside textarea is not possible. You can use a div and make it editable
– Adesh Kumar
Mar 26 at 7:14
add a comment |
Need to display the looped values within a single textarea.
I'm using Laravel and Vue it displays the values seperately within there own textarea.
<textarea>
<div v-for="(item, index) in form.items" :key="index">
<div class="form-group">
<input type="text"
class="form-control"
v-model="form.items[index].value"
:id="'item-' + index">
</div>
</div>
</textarea>
I expect the output to display the values on a seperate line within the textarea to make the values editable.
laravel vue.js vuejs2
Need to display the looped values within a single textarea.
I'm using Laravel and Vue it displays the values seperately within there own textarea.
<textarea>
<div v-for="(item, index) in form.items" :key="index">
<div class="form-group">
<input type="text"
class="form-control"
v-model="form.items[index].value"
:id="'item-' + index">
</div>
</div>
</textarea>
I expect the output to display the values on a seperate line within the textarea to make the values editable.
laravel vue.js vuejs2
laravel vue.js vuejs2
asked Mar 25 at 23:26
HenshallHenshall
429 bronze badges
429 bronze badges
is that any specific reason for using textarea? simply using multile input boxes without text area
– dagalti
Mar 25 at 23:51
Eventually I would like a WYSIWYG, its going to be user facing its currently pulling say 10 values and I list kindof want to list them out so the user can edit and save them. :)
– Henshall
Mar 25 at 23:58
try condenteditable div. you cant do this with textarea
– dagalti
Mar 26 at 0:59
you want a singletextarea
to display multiple values?
– Kapitan Teemo
Mar 26 at 1:40
displaying content like this inside textarea is not possible. You can use a div and make it editable
– Adesh Kumar
Mar 26 at 7:14
add a comment |
is that any specific reason for using textarea? simply using multile input boxes without text area
– dagalti
Mar 25 at 23:51
Eventually I would like a WYSIWYG, its going to be user facing its currently pulling say 10 values and I list kindof want to list them out so the user can edit and save them. :)
– Henshall
Mar 25 at 23:58
try condenteditable div. you cant do this with textarea
– dagalti
Mar 26 at 0:59
you want a singletextarea
to display multiple values?
– Kapitan Teemo
Mar 26 at 1:40
displaying content like this inside textarea is not possible. You can use a div and make it editable
– Adesh Kumar
Mar 26 at 7:14
is that any specific reason for using textarea? simply using multile input boxes without text area
– dagalti
Mar 25 at 23:51
is that any specific reason for using textarea? simply using multile input boxes without text area
– dagalti
Mar 25 at 23:51
Eventually I would like a WYSIWYG, its going to be user facing its currently pulling say 10 values and I list kindof want to list them out so the user can edit and save them. :)
– Henshall
Mar 25 at 23:58
Eventually I would like a WYSIWYG, its going to be user facing its currently pulling say 10 values and I list kindof want to list them out so the user can edit and save them. :)
– Henshall
Mar 25 at 23:58
try condenteditable div. you cant do this with textarea
– dagalti
Mar 26 at 0:59
try condenteditable div. you cant do this with textarea
– dagalti
Mar 26 at 0:59
you want a single
textarea
to display multiple values?– Kapitan Teemo
Mar 26 at 1:40
you want a single
textarea
to display multiple values?– Kapitan Teemo
Mar 26 at 1:40
displaying content like this inside textarea is not possible. You can use a div and make it editable
– Adesh Kumar
Mar 26 at 7:14
displaying content like this inside textarea is not possible. You can use a div and make it editable
– Adesh Kumar
Mar 26 at 7:14
add a comment |
1 Answer
1
active
oldest
votes
One easy way to accomplish this is by creating a string of all values separated by n(new line character) and bind it to the textarea input.Hence your values will be rendered as one value per line in a single textarea. If you need the values in array later you can split the string with newline character and store in an array.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347812%2fdisplay-v-for-items-within-a-single-textarea%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
One easy way to accomplish this is by creating a string of all values separated by n(new line character) and bind it to the textarea input.Hence your values will be rendered as one value per line in a single textarea. If you need the values in array later you can split the string with newline character and store in an array.
add a comment |
One easy way to accomplish this is by creating a string of all values separated by n(new line character) and bind it to the textarea input.Hence your values will be rendered as one value per line in a single textarea. If you need the values in array later you can split the string with newline character and store in an array.
add a comment |
One easy way to accomplish this is by creating a string of all values separated by n(new line character) and bind it to the textarea input.Hence your values will be rendered as one value per line in a single textarea. If you need the values in array later you can split the string with newline character and store in an array.
One easy way to accomplish this is by creating a string of all values separated by n(new line character) and bind it to the textarea input.Hence your values will be rendered as one value per line in a single textarea. If you need the values in array later you can split the string with newline character and store in an array.
answered Mar 26 at 7:10
RiddhiRiddhi
1,1191 gold badge3 silver badges12 bronze badges
1,1191 gold badge3 silver badges12 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347812%2fdisplay-v-for-items-within-a-single-textarea%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
is that any specific reason for using textarea? simply using multile input boxes without text area
– dagalti
Mar 25 at 23:51
Eventually I would like a WYSIWYG, its going to be user facing its currently pulling say 10 values and I list kindof want to list them out so the user can edit and save them. :)
– Henshall
Mar 25 at 23:58
try condenteditable div. you cant do this with textarea
– dagalti
Mar 26 at 0:59
you want a single
textarea
to display multiple values?– Kapitan Teemo
Mar 26 at 1:40
displaying content like this inside textarea is not possible. You can use a div and make it editable
– Adesh Kumar
Mar 26 at 7:14