Socket
Book a DemoInstallSign in
Socket

ack-angular-mobiscroll

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ack-angular-mobiscroll

Angular wrapper for Mobiscroll. Does NOT include a copy of Mobiscroll

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

ack-angular-mobiscroll

Angular wrapper for Mobiscroll. Mimics the paid version of Mobiscroll's Angular wrapper. Does NOT include mobiscroll framework.

Demos and Examples

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 mobiscroll download

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

Mobiscroll's Angular Calendar

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.

Resources

Keywords

angular

FAQs

Package last updated on 16 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.