Untitled
unknown
plain_text
2 years ago
8.7 kB
1
Indexable
Never
<?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">staff_listing.staff_listing_data_source</item> </item> </argument> <settings> <buttons> <button name="add"> <url path="*/*/new"/> <class>primary</class> <label translate="true">Add New Page</label> </button> </buttons> <spinner>staff_columns</spinner> <deps> <dep>staff_listing.staff_listing_data_source</dep> </deps> </settings> <dataSource name="staff_listing_data_source" component="Magento_Ui/js/grid/provider"> <settings> <storageConfig> <param name="indexField" xsi:type="string">id</param> </storageConfig> <updateUrl path="mui/index/render"/> </settings> <aclResource>Magento_Cms::page</aclResource> <dataProvider class="Magento\Cms\Ui\Component\DataProvider" name="staff_listing_data_source"> <settings> <requestFieldName>id</requestFieldName> <primaryFieldName>id</primaryFieldName> </settings> </dataProvider> </dataSource> <listingToolbar name="listing_top"> <settings> <sticky>true</sticky> </settings> <bookmark name="bookmarks"/> <columnsControls name="columns_controls"/> <filterSearch name="fulltext"/> <filters name="listing_filters"> <argument name="data" xsi:type="array"> <item name="observers" xsi:type="array"> <item name="column" xsi:type="string">column</item> </item> </argument> <settings> <templates> <filters> <select> <param name="template" xsi:type="string">ui/grid/filters/elements/ui-select</param> <param name="component" xsi:type="string">Magento_Ui/js/form/element/ui-select</param> </select> </filters> </templates> </settings> <filterSelect name="store_id" provider="${ $.parentName }"> <settings> <captionValue>0</captionValue> <options class="Magento\Cms\Ui\Component\Listing\Column\Cms\Options"/> <label translate="true">Store View</label> <dataScope>store_id</dataScope> <imports> <link name="visible">ns = ${ $.ns }, index = ${ $.index }:visible</link> </imports> </settings> </filterSelect> </filters> <massaction name="listing_massaction"> <action name="delete"> <settings> <confirm> <message translate="true">Are you sure you want to delete selected items?</message> <title translate="true">Delete items</title> </confirm> <url path="cms/page/massDelete"/> <type>delete</type> <label translate="true">Delete</label> </settings> </action> <action name="disable"> <settings> <url path="cms/page/massDisable"/> <type>disable</type> <label translate="true">Disable</label> </settings> </action> <action name="enable"> <settings> <url path="cms/page/massEnable"/> <type>enable</type> <label translate="true">Enable</label> </settings> </action> <action name="edit"> <settings> <callback> <target>editSelected</target> <provider>staff_listing.staff_listing.staff_columns_editor</provider> </callback> <type>edit</type> <label translate="true">Edit</label> </settings> </action> </massaction> <paging name="listing_paging"/> </listingToolbar> <columns name="staff_columns"> <settings> <editorConfig> <param name="clientConfig" xsi:type="array"> <item name="saveUrl" xsi:type="url" path="*/*/inlineEdit"/> <item name="validateBeforeSave" xsi:type="boolean">false</item> </param> <param name="indexField" xsi:type="string">id</param> <param name="enabled" xsi:type="boolean">true</param> <param name="selectProvider" xsi:type="string">staff_listing.staff_listing.staff_columns.ids</param> </editorConfig> <childDefaults> <param name="fieldAction" xsi:type="array"> <item name="provider" xsi:type="string">staff_listing.staff_listing.staff_columns_editor</item> <item name="target" xsi:type="string">startEdit</item> <item name="params" xsi:type="array"> <item name="0" xsi:type="string">${ $.$data.rowIndex }</item> <item name="1" xsi:type="boolean">true</item> </item> </param> </childDefaults> </settings> <selectionsColumn name="ids"> <settings> <indexField>id</indexField> <resizeEnabled>false</resizeEnabled> <resizeDefaultWidth>55</resizeDefaultWidth> </settings> </selectionsColumn> <column name="id"> <settings> <filter>textRange</filter> <label translate="true">ID</label> <sorting>asc</sorting> </settings> </column> <column name="staff"> <settings> <filter>text</filter> <editor> <validation> <rule name="required-entry" xsi:type="boolean">true</rule> </validation> <editorType>text</editorType> </editor> <label translate="true">Staff</label> </settings> </column> <column name="age"> <settings> <filter>text</filter> <editor> <validation> <rule name="required-entry" xsi:type="boolean">true</rule> </validation> <editorType>text</editorType> </editor> <label translate="true">Age</label> </settings> </column> <column name="status" component="Magento_Ui/js/grid/columns/select"> <settings> <options class="Isobar\Bai22\Model\Page\Source\IsActive"/> <filter>select</filter> <editor> <editorType>select</editorType> </editor> <dataType>select</dataType> <label translate="true">Status</label> </settings> </column> <column name="location"> <settings> <filter>text</filter> <editor> <validation> <rule name="required-entry" xsi:type="boolean">true</rule> </validation> <editorType>text</editorType> </editor> <label translate="true">Location</label> </settings> </column> <actionsColumn name="actions" class="Isobar\Bai22\Ui\Component\Listing\Columns\Actions"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="resizeEnabled" xsi:type="boolean">false</item> <item name="resizeDefaultWidth" xsi:type="string">107</item> <item name="indexField" xsi:type="string">id</item> </item> </argument> </actionsColumn> </columns> </listing>