-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIO-7195: Fixes an issue where Select, Radio and SelectBoxes componen…
…ts with URL DataSource show values instead of labels in modal preview (#5586) * FIO-7195: Fixes an issue where Select, Radio and SelectBoxes components with URL DataSource show values instead of labels in modal preview * Fixed tests
- Loading branch information
1 parent
1d1490d
commit c21885d
Showing
5 changed files
with
173 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
export default { | ||
type: 'form', | ||
display: 'form', | ||
components: [ | ||
{ | ||
label: 'Select Boxes - URL', | ||
optionsLabelPosition: 'right', | ||
tableView: true, | ||
modalEdit: true, | ||
dataSrc: 'url', | ||
values: [ | ||
{ | ||
label: '', | ||
value: '', | ||
shortcut: '', | ||
}, | ||
], | ||
valueProperty: 'abbreviation', | ||
key: 'selectBoxes', | ||
type: 'selectboxes', | ||
data: { | ||
url: 'https://gists.rawgit.com/mshafrir/2646763/raw/states_titlecase.json', | ||
headers: [ | ||
{ | ||
key: '', | ||
value: '', | ||
}, | ||
], | ||
}, | ||
template: '<span>{{ item.name }}</span>', | ||
input: true, | ||
inputType: 'checkbox', | ||
}, | ||
{ | ||
label: 'Radio', | ||
optionsLabelPosition: 'right', | ||
inline: false, | ||
tableView: true, | ||
modalEdit: true, | ||
dataSrc: 'url', | ||
values: [ | ||
{ | ||
label: '', | ||
value: '', | ||
shortcut: '', | ||
}, | ||
], | ||
valueProperty: 'abbreviation', | ||
key: 'radio', | ||
type: 'radio', | ||
data: { | ||
url: 'https://gists.rawgit.com/mshafrir/2646763/raw/states_titlecase.json', | ||
headers: [ | ||
{ | ||
key: '', | ||
value: '', | ||
}, | ||
], | ||
}, | ||
template: '<span>{{ item.name }}</span>', | ||
input: true, | ||
}, | ||
{ | ||
label: 'Select', | ||
widget: 'choicesjs', | ||
tableView: true, | ||
modalEdit: true, | ||
dataSrc: 'url', | ||
data: { | ||
url: 'https://gists.rawgit.com/mshafrir/2646763/raw/states_titlecase.json', | ||
headers: [ | ||
{ | ||
key: '', | ||
value: '', | ||
}, | ||
], | ||
}, | ||
valueProperty: 'abbreviation', | ||
template: '<span>{{ item.name }}</span>', | ||
key: 'select', | ||
type: 'select', | ||
disableLimit: false, | ||
noRefreshOnScroll: false, | ||
input: true, | ||
}, | ||
{ | ||
type: 'button', | ||
label: 'Submit', | ||
key: 'submit', | ||
disableOnInvalid: true, | ||
input: true, | ||
tableView: false, | ||
}, | ||
], | ||
}; |