169 похожих чатов

So, I have a form in which for different tickets,

you have to enter the same info. I want to create a checkbox as 'Same as above ticket' On clicking it, the info would be filled in the next ticket. How should I implement this??

4 ответов

7 просмотров

Well, you need some object to store the data. This could be the component, but it would be more convenient if it were a separate object: a POJO, an Ember Data model, a changeset (ember-changeset), etc. Then you can copy properties from one object to another.

progmatic99- Автор вопроса
lolmaus (Andrey Mikhaylov)
Well, you need some object to store the data. This...

so, a form will have the same fields for the number of tickets a user is buying. I would need to create those many objects if I need to copy the properties??

progmatic99
so, a form will have the same fields for the numbe...

Should the user be able to edit those fields separately?

Похожие вопросы

Обсуждают сегодня

А чем вам питонисты не угодили?😂
.
79
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Dim Dim, [02.07.2024 11:07] DB 0x62 Dim Dim, [02.07.2024 11:07] DB 0x66 Dim Dim, [02.07.2024 11:07] кто пояснит что это?
Dim Dim
14
Ошибка: segmentation fault (core dumped) Код: pastebin.com/BEsNNSSV Сообщение от компилятора: отсутствует ОС: Arch Linux Ядро: x86_64 Linux 6.9.7-arch1-1 Процессор: Intel Cele...
sec
4
Ребят, а за скок можно впарить анон чат с апишкой и веб админкой ?
Eugene Неелов
15
Ещё такой вопрос. Мне необходимо хранить пароль пользователя локально. Для этого планирую использовать ini файл. Это для автозаполнения полей логин и пароль при авторизации. Е...
Евгений
19
Кстати, я тут еще с одной темой столкнулся, вот учу я C++, на таком то ресурсе, а остальные постоянно советуют практиковаться, что то писать, проекты, но как писать если вот т...
aaswq1
7
@ahndmn @ayaw0_0 здарова, на чем пишете?
Aiwan \ (•◡•) / _bot
7
Коллеги, как получить PId для собственного процесса из под линукса?
Роман Лях (rgreat)
6
Карта сайта