How to use @instructure/ui-table - 6 common examples

To help you get started, we’ve selected a few @instructure/ui-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 instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.table = function (header, body) {
    // TODO: Figure out how we can add captions for a11y
    //
    // `marked`, the lib we're using to parse the markdown does not allow
    // specification of a caption for the table. Look into an alternate
    // lib for parsing or see if it's supported in a later version. In
    // the meantime, adding an empty string as a caption to avoid throwing
    // a docs error.
    return addElement(Table, { caption: '' }, [
      addElement(Table.Head, null, header),
      addElement(Table.Body, null, body)
    ])
  }
github instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.table = function (header, body) {
    // TODO: Figure out how we can add captions for a11y
    //
    // `marked`, the lib we're using to parse the markdown does not allow
    // specification of a caption for the table. Look into an alternate
    // lib for parsing or see if it's supported in a later version. In
    // the meantime, adding an empty string as a caption to avoid throwing
    // a docs error.
    return addElement(Table, { caption: '' }, [
      addElement(Table.Head, null, header),
      addElement(Table.Body, null, body)
    ])
  }
github instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.tbody = function (content) {
    return addElement(Table.Body, null, content)
  }
github instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.tablecell = function (content, flag) {
    const tag = flag.header ? Table.ColHeader : Table.Cell

    return addElement(tag, null, content)
  }
github instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.thead = function (content) {
    return addElement(Table.Head, null, content)
  }
github instructure / instructure-ui / packages / ui-docs-client / src / compileMarkdown.js View on Github external
renderer.tablerow = function (content) {
    return addElement(Table.Row, null, content)
  }

@instructure/ui-table

A styled HTML table component

MIT
Latest version published 23 hours ago

Package Health Score

84 / 100
Full package analysis