@pie-element/matrix

0.47.6 • Public • Published

@pie-element/matrix

A piematrix component.

Usage

To use this pie, you need to configure it within an Assessment Item. This means that you'll need to add it to the index.html and config.json files.

<matrix-element pie-id="1"></matrix-element>
{
  elements: {
    'matrix': '@pie-element/matrix-element@^0.0.1'
  },
  models: [
    {
      id : "1",
      element: 'matrix',
      prompt : "How likely are you to report a problem?",
      labelType: 'agreement',
      rowLabels: ['I\'m interested in politics.', 'I\'m interested in economics.'],
      columnLabels: ['Disagree', 'Unsure', 'Agree'],
      matrixValues: {},
      prompt: 'How interested are you in the following domains?'
    }
  ]

Pie Demo

There is a demo in docs/demo that you can run to see an example of it's usage.

To preview it in that context you'll need the pie tool.

npm install -g pie
cd matrix/docs/demo
pie serve #will build and serve the pie... then go to http://localhost:4000

Test

npm test # run client and controller tests
npm run client-test # run client tests
npm run controller-test # run controller tests

Release

gulp release
git checkout master
npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i @pie-element/matrix

Weekly Downloads

2,226

Version

0.47.6

License

ISC

Unpacked Size

395 kB

Total Files

59

Last publish

Collaborators

  • ed.eustace
  • elodszopos
  • lakatosandrei
  • evaneus
  • chillenious
  • andreeapescar
  • carlacostea
  • iacoshoria
  • justinheuer