Skip to content
Auf Mithril basierende Drop Down Box
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.babelrc
.gitignore
.npmignore
README.md
package-lock.json
package.json
test-setup.js

README.md

Phoenix Dropdown

Phoenix Dropdown, umgesetzt mit Mithril.

Die Komponente ist Teil des Phoenix Reisen Design-Systems.

Installation

Mithril wird benötigt.

npm install --save @phoenixreisen/dropdown

Anwendung

// entweder CommonJS
const Dropdown = require('@phoenixreisen/dropdown');

// oder ES6+
import Dropdown from '@phoenixreisen/dropdown';

Aufruf

// Hyperscript bzw. Javascript
const el1 = m('div');
const el2 = m('div');
const el3 = m('a'); 

m(Dropdown, { title: 'Optionen' }, [ 
    el1, 
    el2, 
    el3 
]);

// JSX
<Dropdown title="Optionen">
    <el1 />
    <el2 />
    <el3 />
</Dropdown>

Test

npm install
npm run test

Deployment

npm version [major|minor|patch]     # increase version x.x.x => major.minor.patch
npm publish                         # upload to npm
git push
You can’t perform that action at this time.