component css class

This commit is contained in:
merdan 2021-05-01 19:05:13 +05:00
parent b30f1a71d2
commit 70740a965a
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@
{% put scripts %}
<script>
$.request('{{__SELF__}}::onDisplay',{
data:{random:{{__SELF__.property('random')}},css_class:{{__SELF__.property('css_class')}}}
data:{random:{{__SELF__.property('random')}}
{% if __SELF__.property('css_class') %},css_class:{{__SELF__.property('css_class')}} {% endif %}
}
});
</script>
{% endput %}