How to use the ra-core.sanitizeListRestProps function in ra-core

To help you get started, we’ve selected a few ra-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bootstrap-styled / ra-ui / src / components / list / Datagrid.js View on Github external
*/
      if (!isLoading && (ids.length === 0 || total === 0)) {
        return null;
      }

      /**
         * After the initial load, if the data for the list isn't empty,
         * and even if the data is refreshing (e.g. after a filter change),
         * the datagrid displays the current data.
         */
      return (
        
              {expand && (
                <table style="{{">
          <thead>
            <tr><th>
              )}
              {hasBulkActions &amp;&amp; (
                </th><th>
                   0
                                    &amp;&amp; ids.length &gt; 0
                                    &amp;&amp; !ids.find(
                                      it =&gt; selectedIds.indexOf(it) === -1
                                    )</th></tr></thead></table>
github bootstrap-styled / ra-ui / src / components / list / Filter.js View on Github external
children,
      showFilter,
      hideFilter,
      displayedFilters,
      filterValues,
      ...rest
    } = this.props;

    return (
      
    );
  }
github marmelab / react-admin / packages / ra-ui-materialui / src / list / Filter.js View on Github external
showFilter,
            filterValues,
            setFilters,
            ...rest
        } = this.props;

        return (
            
        );
    }
github bootstrap-styled / ra-ui / src / components / list / Filter.js View on Github external
displayedFilters,
      showFilter,
      filterValues,
      setFilters,
      ...rest
    } = this.props;

    return (
      
    );
  }
github marmelab / react-admin / packages / ra-ui-materialui / src / list / Filter.js View on Github external
showFilter,
            filterValues,
            setFilters,
            ...rest
        } = props;

        return (
            
        );
    };
github marmelab / react-admin / packages / ra-ui-materialui / src / list / ListActions.js View on Github external
bulkActions,
    currentSort,
    className,
    resource,
    filters,
    displayedFilters,
    exporter,
    filterValues,
    hasCreate,
    basePath,
    selectedIds,
    onUnselectItems,
    showFilter,
    ...rest
}) =&gt; (
    
        {bulkActions &amp;&amp;
            cloneElement(bulkActions, {
                basePath,
                filterValues,
                resource,
                selectedIds,
                onUnselectItems,
            })}
        {filters &amp;&amp;
            cloneElement(filters, {
                resource,
                showFilter,
                displayedFilters,
                filterValues,
                context: 'button',
            })}
github marmelab / react-admin / packages / ra-ui-materialui / src / list / SimpleList.js View on Github external
leftIcon,
    linkType,
    onToggleItem,
    primaryText,
    rightAvatar,
    rightIcon,
    secondaryText,
    selectedIds,
    tertiaryText,
    total,
    ...rest
}) =&gt; {
    const classes = useStyles({ classes: classesOverride });
    return (
        (loading || total &gt; 0) &amp;&amp; (
            
                {ids.map(id =&gt; (
                    
                        
                            {leftIcon &amp;&amp; (
                                
                                    {leftIcon(data[id], id)}
                                
                            )}
                            {leftAvatar &amp;&amp; (
                                
                                    {leftAvatar(data[id], id)}
github bootstrap-styled / ra-ui / src / components / list / BulkActionsToolbar.js View on Github external
const BulkActionsToolbar = ({
  basePath,
  filterValues,
  label,
  resource,
  selectedIds,
  translate,
  children,
  ...rest
}) =&gt; selectedIds.length &gt; 0 ? (
  
    <div>
      <h2>
        {translate(label, {
          _: label,
          smart_count: selectedIds.length,
        })}
      </h2>
    </div>
    
      {Children.map(children, child =&gt; cloneElement(Children.only(child), {
        basePath,
        filterValues,
        resource,
        selectedIds,
      }))}
github marmelab / react-admin / packages / ra-tree-ui-materialui / src / TreeListActions.tsx View on Github external
expandNode,
    exporter,
    hasCreate,
    hasEdit,
    hasList,
    hasShow,
    loading,
    parentSource,
    permanentFilter,
    positionSource,
    resource,
    toggleNode,
    total,
    ...rest
}) =&gt; (
    
        {hasCreate &amp;&amp; }
        {exporter !== false &amp;&amp; (
            
        )}
    
);