Skip to content
Code-Schnipsel Gruppen Projekte
Commit bb76948c erstellt von Jan Wennrich's avatar Jan Wennrich
Dateien durchsuchen

feat: FormList has attribute for "Add Entry"-button text (closes #31)

Übergeordneter 76873abe
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -34,7 +34,8 @@ define('qui/controls/elements/FormList', [
],
options: {
entry: ''
entry: '',
buttonText: 'Add entry'
},
initialize: function (options) {
......@@ -65,7 +66,7 @@ define('qui/controls/elements/FormList', [
this.$Buttons = this.$Elm.getElement('.qui-controls-formlist-buttons');
new QUIButton({
text : 'Eintrag hinzufügen', // #locale
text : this.getAttribute('buttonText'),
textimage: 'icon-plus fa fa-add',
events : {
onClick: this.$createEntry
......@@ -184,6 +185,8 @@ define('qui/controls/elements/FormList', [
change: this.$refreshData
});
console.log(Child);
QUI.parse(Child).then(function() {
this.$refreshData();
this.fireEvent('parsed', [this, Child]);
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren