### Install Mobiscroll React Lite via npm
Source: https://github.com/acidb/mobiscroll/blob/master/packages/react/README.md
Installs the Mobiscroll React Lite package as a dependency in your project using npm, enabling its use in React applications.
```bash
npm install @mobiscroll/react-lite --save
```
--------------------------------
### Install Mobiscroll Angular Lite via npm
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angular/README.md
Command to install the Mobiscroll Angular Lite package as a project dependency using npm.
```bash
npm install @mobiscroll/angular-lite --save
```
--------------------------------
### Install Mobiscroll jQuery Lite via npm
Source: https://github.com/acidb/mobiscroll/blob/master/packages/jquery/README.md
Installs the Mobiscroll jQuery Lite package, a UI library for web and hybrid development, as a project dependency using npm.
```npm
npm install @mobiscroll/jquery-lite --save
```
--------------------------------
### Build Mobiscroll Project Assets
Source: https://github.com/acidb/mobiscroll/blob/master/examples/kitchen-sink/README.md
This command sequence installs project dependencies using npm and then compiles the CSS and JavaScript assets into the `dist` folder using Grunt. These steps are essential for preparing the project for deployment or local development.
```Shell
npm install
grunt build
```
--------------------------------
### Basic Mobiscroll JavaScript and HTML Usage Example
Source: https://github.com/acidb/mobiscroll/blob/master/packages/javascript/README.md
This example demonstrates the fundamental steps to integrate Mobiscroll into a web application. It shows how to import the library in JavaScript and configure global settings, such as the theme. Additionally, it provides a basic HTML structure for a Mobiscroll form, including input fields and a submit button, utilizing Mobiscroll's custom attributes.
```JavaScript
import mobiscroll from '@mobiscroll/javascript-lite';
mobiscroll.settings = {
theme: 'mobiscroll'
};
```
```HTML
```
--------------------------------
### Install Mobiscroll Forms for JavaScript via npm
Source: https://github.com/acidb/mobiscroll/blob/master/packages/javascript/README.md
This snippet provides the command to install the Mobiscroll Forms library for plain JavaScript projects using the npm package manager. The `--save` flag ensures the dependency is added to your project's `package.json` file.
```Shell
npm install @mobiscroll/javascript-lite --save
```
--------------------------------
### Install Mobiscroll AngularJS Lite via npm
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angularjs/README.md
This command installs the Mobiscroll Forms for AngularJS package from npm, saving it as a dependency in your project's package.json file. It's the standard way to include Mobiscroll in an AngularJS application.
```bash
npm install @mobiscroll/angularjs-lite --save
```
--------------------------------
### Import Mobiscroll Styles in JavaScript/TypeScript
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angular/README.md
Provides an example of importing Mobiscroll's CSS file directly into a JavaScript or TypeScript file, a common practice when using module bundlers like Webpack with a CSS loader.
```typescript
import '@mobiscroll/angular-lite/dist/css/mobiscroll.min.css';
```
--------------------------------
### Initialize Mobiscroll and Set Theme (JavaScript)
Source: https://github.com/acidb/mobiscroll/blob/master/packages/jquery/README.md
Imports the Mobiscroll library and configures its global settings, such as the default theme, for all components used in the application.
```Javascript
import mobiscroll from '@mobiscroll/jquery-lite';
mobiscroll.settings = {
theme: 'mobiscroll'
};
```
--------------------------------
### Basic Mobiscroll Form Component in React
Source: https://github.com/acidb/mobiscroll/blob/master/packages/react/README.md
Demonstrates a simple React component that utilizes Mobiscroll's Form, Input, and Button components to create a basic sign-in form. It shows how to import Mobiscroll components and render them within a React application's DOM.
```javascript
import React from 'react';
import ReactDOM from 'react-dom';
import mobiscroll from '@mobiscroll/react-lite';
class App extends React.Component {
render() {
return (
UsernamePasswordSign In
);
}
});
ReactDOM.render(
,
document.getElementById("app")
);
```
--------------------------------
### Import Mobiscroll Stylesheet (JavaScript)
Source: https://github.com/acidb/mobiscroll/blob/master/packages/jquery/README.md
Demonstrates how to import the Mobiscroll CSS stylesheet into a JavaScript file, a common practice when using module bundlers like Webpack to manage assets.
```Javascript
import '@mobiscroll/jquery-lite/dist/css/mobiscroll.min.css';
```
--------------------------------
### Import Mobiscroll CSS Styles in React Project
Source: https://github.com/acidb/mobiscroll/blob/master/packages/react/README.md
Illustrates how to import the necessary Mobiscroll minified CSS stylesheet into a JavaScript file. This method typically relies on a module bundler (e.g., Webpack with css-loader) to correctly process and include the styles in the final build.
```javascript
import '@mobiscroll/react-lite/dist/css/mobiscroll.min.css';
```
--------------------------------
### Define Mobiscroll Form Settings in Angular Component
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angular/README.md
Shows how to define an Angular component and set up `formSettings` to configure Mobiscroll form properties, such as the theme.
```typescript
import { Component } from '@angular/core';
@Component({
selector: 'demo-app',
templateUrl: './app.component.html',
moduleId: module.id
})
export class AppComponent {
formSettings = {
theme: 'mobiscroll'
};
}
```
--------------------------------
### Define a Basic Mobiscroll Form (HTML)
Source: https://github.com/acidb/mobiscroll/blob/master/packages/jquery/README.md
Illustrates the basic HTML structure for a Mobiscroll form, including input fields for user credentials and a submit button, utilizing the `mbsc-form` attribute.
```HTML
```
--------------------------------
### Configure Angular Module for Mobiscroll Integration
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angular/README.md
Demonstrates how to import necessary Mobiscroll modules and add them to the Angular application's imports array within `app.module.ts` to enable Mobiscroll components.
```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MbscModule } from '@mobiscroll/angular-lite';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
MbscModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```
--------------------------------
### Configure Mobiscroll Styles in angular-cli.json
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angular/README.md
Demonstrates how to include the Mobiscroll CSS file in the `styles` array within the `angular-cli.json` configuration for Angular CLI-generated projects, ensuring styles are loaded globally.
```json
{
...
"apps": [
{
...
"styles": [
"styles.css",
"../node_modules/@mobiscroll/angular-lite/dist/css/mobiscroll.min.css"
],
...
}
]
...
}
```
--------------------------------
### Configure Mobiscroll AngularJS Module and Controller
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angularjs/README.md
This JavaScript code demonstrates how to import Mobiscroll into an AngularJS application, define a module ('demoApp') with the 'mobiscroll-form' dependency, and set basic Mobiscroll settings like the theme within a controller ('demoController'). The settings object can be used to customize Mobiscroll component behavior.
```javascript
import angular from 'angular';
import '@mobiscroll/angularjs-lite';
angular
.module('demoApp', ['mobiscroll-form'])
.controller('demoController', ['$scope', function ($scope) {
$scope.settings = {
theme: 'mobiscroll'
};
}]);
```
--------------------------------
### Create Mobiscroll AngularJS Form in HTML
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angularjs/README.md
This HTML snippet shows how to integrate a Mobiscroll form into an AngularJS application. It uses 'ng-app' and 'ng-controller' to bind to the JavaScript logic, and the 'mobiscroll-form' directive to apply Mobiscroll styling and functionality to the contained input fields, referencing the 'settings' object from the controller.
```html
```
--------------------------------
### Create Mobiscroll Form in Angular HTML Template
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angular/README.md
Illustrates the usage of Mobiscroll components like `mbsc-form`, `mbsc-input`, and `mbsc-button` within an Angular HTML template, including binding options to the form.
```html
UsernamePasswordSign In
```
--------------------------------
### Import Mobiscroll CSS Styles in JavaScript
Source: https://github.com/acidb/mobiscroll/blob/master/packages/javascript/README.md
This snippet illustrates how to import the necessary Mobiscroll CSS stylesheet directly into a JavaScript file. This method is commonly used in projects that leverage module bundlers like Webpack, often in conjunction with `css-loader`, to manage and bundle CSS assets.
```JavaScript
import '@mobiscroll/javascript-lite/dist/css/mobiscroll.min.css';
```
--------------------------------
### Import Mobiscroll CSS Styles
Source: https://github.com/acidb/mobiscroll/blob/master/packages/angularjs/README.md
This JavaScript import statement loads the Mobiscroll minimum CSS file. It's crucial for applying the correct visual styling to Mobiscroll components. This method is typically used in projects that utilize module bundlers like Webpack, often in conjunction with css-loader.
```javascript
import '@mobiscroll/angularjs-lite/dist/css/mobiscroll.min.css';
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.