Skip to content
This repository has been archived by the owner. It is now read-only.

phoenixreisen/dropdown

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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 install]                       # Abhängigkeiten installieren
npm version [major|minor|patch]     # increase version x.x.x => major.minor.patch
npm publish                         # upload to npm
git push

About

Auf Mithril basierende Drop Down Box

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published