Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikaim committed Sep 18, 2022
1 parent d7307ff commit 408f4e9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
6 changes: 3 additions & 3 deletions arikaim-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"title": "Arikaim UI",
"name": "arikaim-ui",
"package-type": "library",
"version": "1.4.11",
"version": "1.4.13",
"description": "Arikaim UI library",
"repository": "https://github.com/arikaim/arikaim-ui-library.git",
"files": [
"arikaim-ui-1.4.12.min.js"
"arikaim-ui-1.4.13.min.js"
],
"versions": {
"cdn": {
"files": [
"https://cdn.jsdelivr.net/gh/arikaim-repository/arikaim-ui-library@1.4.11/arikaim-ui-1.4.12.min.js"
"https://cdn.jsdelivr.net/gh/arikaim-repository/arikaim-ui-library@1.4.11/arikaim-ui-1.4.13.min.js"
]
},
"source": {
Expand Down
7 changes: 0 additions & 7 deletions arikaim-ui-1.4.11.min.js

This file was deleted.

7 changes: 7 additions & 0 deletions arikaim-ui-1.4.13.min.js

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion arikaim-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function Form() {
*/
function ArikaimUI() {
var self = this;
var version = '1.4.12';
var version = '1.4.13';

this.form = new Form();
this.template = new TemplateEngine();
Expand Down Expand Up @@ -584,6 +584,20 @@ function ArikaimUI() {
this.loadComponentButton = function(selector, onSuccess, onError) {
this.button(selector,function(button) {
var props = self.getAttributes(button);

if (isEmpty(props['params']) == false) {
var params = {};
var itemValue;
var items = props['params'].split(',');
items.forEach(function(item) {
var param = item.split(':');
itemValue = (param[1] === 'false') ? false : param[1];
itemValue = (itemValue === 'true') ? true : itemValue;
params[param[0]] = itemValue;
});
props['params'] = params;
}

return self.loadComponent(props,onSuccess,onError);
});
};
Expand Down

0 comments on commit 408f4e9

Please sign in to comment.