ack-angular-mobiscroll
v1.0.3
Published
Angular wrapper for Mobiscroll. Does NOT include a copy of Mobiscroll
Downloads
64
Maintainers
Readme
ack-angular-mobiscroll
Angular wrapper for Mobiscroll. Mimics the paid version of Mobiscroll's Angular wrapper. Does NOT include mobiscroll framework.
Table of Contents
To Mobiscroll
I've read the EULA, very carefully, that I have agreed to when I bought my paid copy of Mobiscroll. This github package does NOT include the mobiscroll source code.
My demo and example page, is NOT a github distribution channel, but does contain my paid copy of mobiscroll as it is an educational and fundraising page for myself.
Installation
npm install ack-angular-mobiscroll --save-dev
Reminder, you will need to have your own copy of the mobiscroll framework.
Download mobiscroll, as seen in image below
Importing
How to get using ack-angular-mobiscroll
import { Component, NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { MbscModule, MbscProvider } from "ack-angular-mobiscroll"
// Supply your piad copy of mobiscroll. Must do this OR have window.mobiscroll available
import * as mobiscroll from "./my-mobiscroll-paid-copy"
MbscProvider.setMobiscroll(mobiscroll)
@Component({
selector: 'my-app',
template: '<input type="datetime" mbsc-calendar />'
}) export class AppComponent {}
@NgModule({
imports:[
BrowserModule,
MbscModule
],
declarations: [
AppComponent
],
bootstrap:[ AppComponent ]
}) export class AppModule { }
CSS Files are a seperate topic.
Please ensure, at runtime, you have
linked
to mobiscroll css files
Supported Modules
Currently, only the Calendar module has been replicated from mobiscroll.
Calendar
Create a calendar with default functionality
Here is an example for the calendar directive with ngModel
@Component({
selector: 'my-example',
template: `<input [(ngModel)]="birthday" mbsc-calendar />`
})
export class MyExampleComponent {
birthday: Date = new Date();
}
Example for the calendar directive without ngModel
@Component({
selector: 'my-example',
template: `<input [(mbsc-calendar)]="birthday" />`
})
export class MyExampleComponent {
birthday: Date = new Date();
}
Example for the calendar directive with additional settings
@Component({
selector: 'my-example',
template: `<input [(ngModel)]="birthday" mbsc-calendar [mbsc-options]="myBirthdaySettings" />`
})
export class MyExampleComponent {
birthday: Date = new Date();
myBirthdaySettings: any = {
theme: 'ios',
display: 'bottom'
};
}
History
5/30/17 - I, Acker Apple, have only ever used the Calendar module of Mobiscroll. I disagree with Mobiscroll's approach to many things, especially it's paid platform. The mobiscroll paid platform, which I've paid into, requires you to download file updates via a login (no npm update commands). Mobiscroll does have an npmjs.org package and github page but they are limited incomplete versions of the paid Mobiscroll code.