Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikaim committed Jul 25, 2024
1 parent a87f235 commit 05474a1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arikaim-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "UI components",
"package-type": "components",
"name": "semantic",
"version": "1.8.11",
"version": "1.8.12",
"description": "Arikaim components library for Semantic UI.",
"repository": "https://github.com/arikaim/ui-components.git",
"require": {
Expand Down
1 change: 1 addition & 0 deletions panel/panel.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div
id="{{ component_id }}"
show_parent="{{ show_parent|default(false) }}"
class="ui {{ class|default('ui segment') }}">
{% if hide_title != true %}
{{ component('semantic~panel.title',{
Expand Down
16 changes: 13 additions & 3 deletions panel/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@

arikaim.component.onLoaded(function(component) {

component.close = function() {
if (component.get('show_parent') != true) {
$(component.getElement()).parent().hide();
}
$(component.getElement()).remove();
};

component.remove = function() {
$(component.getElement()).remove();
}

component.init = function() {
var closeButtons = $(component.getElement()).find('.panel-close-button');
arikaim.ui.button(closeButtons,function(element) {
$(component.getElement()).parent().hide();
$(component.getElement()).remove();
arikaim.ui.button(closeButtons,function() {
component.close();
});
$(component.getElement()).parent().show();
};
Expand Down
5 changes: 5 additions & 0 deletions properties/items/items.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
{% else %}
{% set field_name = property.name %}
{% endif %}

{% if field_group is not empty %}
{% set field_name = field_group ~ '[' ~ field_name ~ ']' %}
{% endif %}

{% set rule = (property.required == true) ? 'empty' : '' %}
{% if property['type'] == 7 %}
<div class="field {{ property.required|ifthen(true,'required') }}">
Expand Down

0 comments on commit 05474a1

Please sign in to comment.