npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mithril-onsenui

v2.10.6

Published

Mithril bindings for Onsen UI

Downloads

12

Readme

Mithril bindings for Onsen UI

Onsen UI Mithril

With Onsen UI you can create beautiful and performant hybrid apps that run on both Android and iOS. This package contains Mithril.js v2 bindings and components that makes it easy to integrate the Onsen UI components in Mithril apps.

For more information of what's included in Onsen UI please see:

Installation

Package Manager (yarn, npm)

yarn add onsenui mithril-onsenui --save

Direct download

Get onsenui.js, onsenui.css and onsenui-css-components.css from the latest core release. You will also need mithril-onsenui.js file from this CDN link.

Including Mithril.js and Onsen UI

ES6 imports and Webpack (with CSS imports)

import 'onsenui/css/onsenui.css';
import 'onsenui/css/onsen-css-components.css';

import m from 'mithril';
import mOnsen from 'mithril-onsenui';

Direct include in index.html

<link rel="stylesheet" href="onsen-css-components.css">
<link rel="stylesheet" href="onsenui.css">

<script src="mithril.js"></script>
<script src="onsenui.js"></script>
<script src="mithril-onsenui.js"></script>

<!-- Mithril.use(MithrilOnsen) is called automatically if window.Mithril is defined -->

Examples - Running the development server

The examples are located under /bindings/mithril/examples directory in the main repo.

You can serve these examples by running the development server. First you need to build the main repo. When that is done you can run the following commands from /bindings/mithril/ directory:

yarn install
yarn run dev

This will open a development server with a kitchen sink app in localhost:8080.

Otherwise, have a look at the playground for online examples.

Support

If you need help using these bindings we recommend you to use our forum to ask questions. We also have a Gitter channel.

If you find any bug or want to request features/ API changes, please open an issue. Make sure to include all information necessary to reproduce it if you file a bug report.