Collapsible for Angular and Ionic Framework
Use the collapsible and accordion to make custom panels, form groups and cards collapsible one by one or alternate close & open. Use it to segment long forms and content or use it for progressive disclosure.
Collapsible and accordion demos available for other frameworks.
Viewing demos & code for
is loading ...
is loading ...
Angular and Ionic Collapsible
Accordion
Accordion
Change the theme setting here
Change the language and localization settings here
Mobiscroll UI is a library of components for progressive webapps and hybrid development. Created with a lot of attention to usability and performance. Learn more about mobiscroll and see if it is for you?
You can start out with a Component license and move to Framework if you need the additional functionality. The same goes for upgrading to the Complete license. The upgrade fee is the price difference between the two tiers.
You can use mobiscroll in your responsive or mobile webapps and hybrid apps (like Cordova, Phonegap, Ionic). Mobiscroll is framework agnostic and runs everywhere where Javascript can be executed. However it comes in a couple of flavors for major Frameworks: Plain Javascript, jQuery and jQuery Mobile, Angular and Angular based frameworks (like Ionic) - both Angular JS and Angular 2+ is supported and React.
The Theme Builder is the quickest way to get beautiful and professional looking themes that match your brand and application. We provide a super-easy to use tool where themes can be customized with just a couple of clicks. You can create your custom themes with a Trial account and download once upgraded to the full product.
Collapsible - Collapsible form group
Collapsible - Accordion
import { Component, ViewChild } from '@angular/core';
import { MbscFormOptions } from '@mobiscroll/angular';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('payment')
payment: any;
@ViewChild('usage')
usage: any;
@ViewChild('upgrades')
upgrades: any;
@ViewChild('mbsc')
mbsc: any;
formSettings: MbscFormOptions = {
lang: ' '
theme: 'ios',
themeVariant: 'light'
};
closeAll() {
this.payment.instance.hide();
this.usage.instance.hide();
this.upgrades.instance.hide();
this.mbsc.instance.hide();
}
toggleLast() {
this.payment.instance.toggle();
}
}
<mbsc-form [options]="formSettings">
<mbsc-note color="primary">Use the accordion on forms to open only one panel at a time.</mbsc-note>
<div class="mbsc-btn-group-block">
<mbsc-button (click)="toggleLast()">Toggle last panel</mbsc-button>
<mbsc-button (click)="closeAll()">Close all panels</mbsc-button>
</div>
<mbsc-accordion>
<mbsc-form-group collapsible open #mbsc>
<mbsc-form-group-title>What is Mobiscroll?</mbsc-form-group-title>
<mbsc-form-group-content>
<div class="mbsc-padding">
<p>Mobiscroll UI is a library of components for progressive webapps and hybrid development. Created with a lot of attention to usability and performance. Learn more about mobiscroll and see if it is for you?</p>
</div>
</mbsc-form-group-content>
</mbsc-form-group>
<mbsc-form-group collapsible #upgrades>
<mbsc-form-group-title>Upgrades</mbsc-form-group-title>
<mbsc-form-group-content>
<div class="mbsc-padding">
<p>You can start out with a Component license and move to Framework if you need the additional functionality. The same goes for upgrading to the Complete license. The upgrade fee is the price difference between the two tiers.</p>
</div>
</mbsc-form-group-content>
</mbsc-form-group>
<mbsc-form-group collapsible #usage>
<mbsc-form-group-title>Usage</mbsc-form-group-title>
<mbsc-form-group-content>
<div class="mbsc-padding">
<p>You can use mobiscroll in your responsive or mobile webapps and hybrid apps (like Cordova, Phonegap, Ionic). Mobiscroll is framework agnostic and runs everywhere where Javascript can be executed. However it comes in a couple of flavors
for major Frameworks: Plain Javascript, jQuery and jQuery Mobile, Angular and Angular based frameworks (like Ionic) - both Angular JS and Angular 2+ is supported and React.</p>
</div>
</mbsc-form-group-content>
</mbsc-form-group>
<mbsc-form-group collapsible #payment>
<mbsc-form-group-title>Theme Builder</mbsc-form-group-title>
<mbsc-form-group-content>
<div class="mbsc-padding">
<p>The Theme Builder is the quickest way to get beautiful and professional looking themes that match your brand and application. We provide a super-easy to use tool where themes can be customized with just a couple of clicks. You can
create your custom themes with a Trial account and download once upgraded to the full product.</p>
</div>
</mbsc-form-group-content>
</mbsc-form-group>
</mbsc-accordion>
</mbsc-form>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MbscModule } from '@mobiscroll/angular';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
MbscModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
HttpClientJsonpModule
],
bootstrap: [AppComponent]
})
export class AppModule { }
Collapsible - Collapsible cards
Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.
What framework are you using?
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Create an Ionic 3 & Mobiscroll starter with the CLI:
Run this command for Ionic 4 & Mobiscroll starter:
Step 3.Copy the code into your app.
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Run this command for Ionic 5 & React Mobiscroll starter:
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Angular project
$ mobiscroll config angular --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.
Step 4.Run ng serve in the root folder of your app 🎉
$ ng serve
And voilà, everything should be running smoothly.
Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.
$ npm install
$ ionic serve
Let us know if we can help and enjoy!
Everything is set up so that you can dig in right away and start exploring.
Please extract the zip file and simply open the demos in your favorite browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy! 👍
Please extract the zip file and run the project like any Angular CLI app.
Make sure to have the Angular CLI installed.
For installation and usage, extract the zip file and open a terminal window and follow these steps.
$ npm install
$ ng serve --open
Let us know if we can help and enjoy! 👍
Everything is set up so that you can dig in right away and start exploring.
We have set up a trial so that you can try the demos locally.
The easiest way to get started is to follow the installation steps and by
grabbing the code directly from the demo page. Let us know if we can help and enjoy! 👍
You'll find a fully functional Kitchen-sink Ionic app in the zip file.
The demos are using Babel's in-browser ES6 and JSX transformer.
Please extract the zip file and open the demos in your browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy!
We have to set you up with a trial for this to run 👍
Enter a new password and hit the button below to change it!
You are setting a password for the account
Your password has been changed!