<?xml version=“1.0” encoding=“UTF-8”?>

<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”>blogmanager_blog_listing.blogmanager_blog_listing_data_source</item>

            <item name=“deps” xsi:type=“string”>blogmanager_blog_listing.blogmanager_blog_listing_data_source</item>

        </item>

        <item name=“spinner” xsi:type=“string”>blogmanager_blog_columns</item>

    </argument>

    <dataSource name=“blogmanager_blog_listing_data_source”>

        <argument name=“dataProvider” xsi:type=“configurableObject”>

            <argument name=“class” xsi:type=“string”>MagentoFrameworkViewElementUiComponentDataProviderDataProvider</argument>

            <argument name=“name” xsi:type=“string”>blogmanager_blog_listing_data_source</argument>

            <argument name=“primaryFieldName” xsi:type=“string”>entity_id</argument>

            <argument name=“requestFieldName” xsi:type=“string”>entity_id</argument>

            <argument name=“data” xsi:type=“array”>

                <item name=“config” xsi:type=“array”>

                <item name=“update_url” xsi:type=“url” path=“mui/index/render”/>

                <item name=“storageConfig” xsi:type=“array”>

                    <item name=“indexField” xsi:type=“string”>entity_id</item>

                </item>

                </item>

            </argument>

        </argument>

        <argument name=“data” xsi:type=“array”>

            <item name=“js_config” xsi:type=“array”>

                <item name=“component” xsi:type=“string”>Magento_Ui/js/grid/provider</item>

            </item>

        </argument>

    </dataSource>

    <listingToolbar name=“listing_top”>

        <bookmark name=“bookmarks”/>

        <columnsControls name=“columns_controls”/>

        <filters name=“listing_filters”>

                <argument name=“data” xsi:type=“array”>

                    <item name=“config” xsi:type=“array”>

                        <item name=“templates” xsi:type=“array”>

                            <item name=“filters” xsi:type=“array”>

                                <item name=“select” xsi:type=“array”>

                                    <item name=“component” xsi:type=“string”>Magento_Ui/js/form/element/uiselect</item>

                                    <item name=“template” xsi:type=“string”>ui/grid/filters/elements/uiselect</item>

                                </item>

                            </item>

                        </item>

                    </item>

                </argument>

        </filters>

        <paging name=“listing_paging”/>

    </listingToolbar>

    <columns name=“blogmanager_blog_columns”>

        <column name=“entity_id”>

            <settings>

                <filter>textRange</filter>

                <label translate=“true”>ID</label>

                <resizeDefaultWidth>25</resizeDefaultWidth>

            </settings>

        </column>

        <column name=“user_id”>

            <settings>

                <filter>text</filter>

                <label translate=“true”>User</label>

            </settings>

        </column>

        <column name=“title”>

            <settings>

                <filter>text</filter>

                <label translate=“true”>Title</label>

            </settings>

        </column>

        <column name=“content” class=“WebkulBlogManagerUiComponentListingColumnsContent”>

            <settings>

                <filter>false</filter>

                <sortable>false</sortable>

                <label translate=“true”>Content</label>

            </settings>

        </column>

        <column name=“status” component=“Magento_Ui/js/grid/columns/select”>

            <settings>

                <options class=“WebkulBlogManagerModelBlogStatus”/>

                <dataType>select</dataType>

                <filter>select</filter>

                <sortable>false</sortable>

                <label translate=“true”>Status</label>

            </settings>

        </column>

        <column name=“updated_at” component=“Magento_Ui/js/grid/columns/date”>

            <settings>

                <filter>dateRange</filter>

                <dataType>date</dataType>

                <label translate=“true”>Updated</label>

            </settings>

        </column>

        <column name=“created_at” component=“Magento_Ui/js/grid/columns/date”>

            <settings>

                <filter>dateRange</filter>

                <dataType>date</dataType>

                <label translate=“true”>Created</label>

            </settings>

        </column>

    </columns>

</listing>



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.