![]() ![]() ![]() Once you are in, scroll down to the Meta Fields block, open it and find your Repeater meta field. Find your Repeater meta field’s settings by going to WordPress Dashboard > JetEngine > Meta Boxes or WordPress Dashboard > JetEngine > Post Types (depending on the Repeater’s location).Ĭlick on “ Edit” the needed Custom Post Type or Meta Box. The approach described in that homepage documentation should work just fine for multiple inputs: ('.icon-picker'). If you haven’t created an Iconpicker field to store your icon yet, this would be the first thing to do. Creating an Iconpicker field within the Repeater meta field But to display such an icon, we should use a particular macro – render_fa_icon. Such widgets as Tabs, Classic Accordion, Slider, etc., allow us to set a custom icon right from the Iconpicker field of the Repeater meta field. ![]() Dynamic Data addon installed and activated.JetElements or JetTabs plugin installed and activated.If controls are not used, they are simply anchored to an invisible pool-control - the "control structure", meaning which control to display on what position is saved into an array containing the appropriate values.How to display an icon from the Repeater field in the widgets that support the Dynamic Settings? Then find the Iconpicker option in the Type drop-down menu. To do so, click on the New Repeater Meta Field button and fill in the Label and Name. Within the Repeater meta field, add a new Iconpicker field. As soon as the user "selects" an aura from the left menu it's name is saved to the addons "global" table (AuraMastery.activeAura = auraName), the editboxes will be filled with the appropriate text values and all menu controls will be displayed. Once you are in, scroll down to the Meta Fields block, open it and find your Repeater meta field. Open the settings of the widget and unfold the Dynamic Settings tab. Find the Classic Accordion widget or any other that supports Dynamic data addon and place it on the page. If you use a Single Post Template, open it in the Elementor editor. The controls on the right side of the menu are all precreated and hidden. Open the page in Elementor, where you will showcase the content using repeater values. Here is a screenshot that makes it easier understandable: So the getfunc will just automatically use the default variable which is stored in the savedvars now. If the default value is the same that you use for the SavedVars creation the settings probably won't be nil, as they got copied from the defaults. The getfunc will try to read the savedvars and if nothing is found (= nil) it will use the default value. The list of icons can be loaded manually using a SELECT field, an Array or Object of icons or directly from a Fontello config.json or IcoMoon selection.json file. Setting the default values at lam controls will let you use the "Set back to defaults" button fo all the LAM controls e.g. jQuery fontIconPicker is a small jQuery plugin which allows you to include an elegant icon picker with categories, search and pagination inside your administration forms. The default values just need to be an array/table with all your possible saved variables as default values, which you use at the SavedVariables creation as the default values/fallback values if the real saved variables are missing (new savedvars version, new addon, settings = nil. This active aura's path is stored in .ĭefault = .iconPath Basically needed the icon to dynamically change to the path returned by a function that is called on clicking another button that selects the aura to be currently edited. ![]()
0 Comments
Leave a Reply. |