How to use @pluralsight/ps-design-system-table - 7 common examples

To help you get started, we’ve selected a few @pluralsight/ps-design-system-table 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 pluralsight / design-system / packages / site / pages / components / table.js View on Github external
{state.rows.sort(sortRows).map(row => (
              
                
                  
                  <div style="{{">
                    {row.name}
                  </div>
                
                
                  {row.courses}
                
                
                  {row.viewTime}m
                
              
            ))}
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
null,
              null,
              'content of table, per row'
            ]),
            PropTypes.row([
              'inDrawer',
              'boolean',
              null,
              <code>false</code>,
              'used to add additional styles when table is nested in a Drawer'
            ])
          ],
          'Table.Cell': [
            PropTypes.row([
              'align',
              PropTypes.union(Table.aligns),
              null,
              <code>left</code>,
              'text alignment'
            ]),
            PropTypes.row([
              'emphasis',
              'boolean',
              null,
              <code>false</code>,
              'highlight content priority'
            ]),
            PropTypes.row([
              'flex',
              'string',
              null,
              null,
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
constructor(props) {
    super(props)
    this.state = {
      fields: [
        { key: 'name', name: 'Name', align: Table.aligns.left },
        { key: 'courses', name: 'Unique Courses', align: Table.aligns.right },
        { key: 'viewTime', name: 'View Time', align: Table.aligns.right }
      ],
      sortKey: 'name',
      sortDirection: Table.sorts.asc,
      rows: [
        {
          name: 'Tod Gentille',
          courses: 41,
          viewTime: 839
        },
        {
          name: 'Dmitry Borodyansky',
          courses: 2,
          viewTime: 12
        },
        {
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
constructor(props) {
    super(props)
    this.state = {
      fields: [
        { key: 'name', name: 'Name', align: Table.aligns.left },
        { key: 'courses', name: 'Unique Courses', align: Table.aligns.right },
        { key: 'viewTime', name: 'View Time', align: Table.aligns.right }
      ],
      sortKey: 'name',
      sortDirection: Table.sorts.asc,
      rows: [
        {
          name: 'Tod Gentille',
          courses: 41,
          viewTime: 839
        },
        {
          name: 'Dmitry Borodyansky',
          courses: 2,
          viewTime: 12
        },
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
{state.rows.sort(sortRows).map(row =&gt; (
              
                
                  
                  <div style="{{">
                    {row.name}
                  </div>
                
                
                  {row.courses}
                
                
                  {row.viewTime}m
                
              
            ))}
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
<code>flex</code> css attribute to control column width
              
            ]),
            PropTypes.row([
              'onClick',
              <span>
                <code>sort</code>
                {' =&gt; ()'}
              </span>,
              null,
              null,
              'triggered on header click, returns new sort direction'
            ]),
            PropTypes.row([
              'sort',
              PropTypes.union(Table.sorts),
              null,
              null,
              'labels column as sortable or sorted'
            ])
          ]
        }}
      /&gt;

      In-app example
      

      Emphasis
      <p>
        Place the primary column, often "Name" or "Title", leftmost in the
        table. Add emphasis to visually anchor the primary column.
      </p>
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
constructor(props) {
    super(props)
    this.state = {
      fields: [
        { key: 'name', name: 'Name', align: Table.aligns.left },
        { key: 'courses', name: 'Unique Courses', align: Table.aligns.right },
        { key: 'viewTime', name: 'View Time', align: Table.aligns.right }
      ],
      sortKey: 'name',
      sortDirection: Table.sorts.asc,
      rows: [
        {
          name: 'Tod Gentille',
          courses: 41,
          viewTime: 839
        },
        {
          name: 'Dmitry Borodyansky',
          courses: 2,
          viewTime: 12
        },
        {
          name: 'Jake Trent',
          courses: 7,
          viewTime: 294
        }

@pluralsight/ps-design-system-table

Table UI Component for the Pluralsight Design System

Apache-2.0
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis

Similar packages