Placeholder
misc
Reserve space when there is no real content.
misc
Reserve space when there is no real content.
| Example | Add new thing |
| HTML code | <DIV class="placeholder">
<DIV class="columns">
<DIV class="column placeholder__icon">
<I class="fa fa-addnew">
</I>
</DIV>
<DIV class="column placeholder__body">
<H4>Add new thing</H4>
</DIV>
</DIV>
</DIV> |
| Type | molecule |
| Group | misc |
| Elements | icon, title, description |
| More examples | Only iconNo title text, just icon DescriptonAdd new thingMore precise explanation of what it means |
Wrapper to use element through PHP
| Extends | eUiElementAlert |
| Render | html |
| Create arguments | title, icon, onclick |
| Code example | Parameters as arguments$Placeholder = $this->get('ui', 'placeholder', 'Title', 'icon');Parameters as array$Placeholder = $this->get('ui', 'placeholder', Array(
'title' => 'Placeholder',
'icon' => 'app-addnew',
'description' => 'Additional text',
'tooltip' => 'Tooltip text',
'onclick' => 'runFunction()'
)); |
Wrapper to use element through Javascript
| Code example | Parameters as argumentsvar $Placeholder = cms.get('ui', 'placeholder', {
icon: 'icon-name',
title: 'Title',
description: 'Additional text'
tooltip: 'Tooltip text',
onclick: function(){}
}) |
Elements Css style
| icon | IconArray |