nativescript-material-activityindicator
TypeScript icon, indicating that this package has built-in type declarations

3.3.2 • Public • Published

npm npm GitHub forks GitHub stars

Installation

If using @nativescript :

  • tns plugin add nativescript-material-activityindicator

If using tns-core-modules

  • tns plugin add nativescript-material-activityindicator@2.5.4

Be sure to run a new build after adding plugins to avoid any issues.


Material Design Spec

Usage

Plain NativeScript

IMPORTANT: Make sure you include xmlns:mda="nativescript-material-activityindicator" on the Page element

XML

<Page xmlns:mda="nativescript-material-activityindicator">
    <StackLayout horizontalAlignment="center">
        <mda:ActivityIndicator busy="true"/>
    </StackLayout>
</Page>

CSS

mdcactivityindicator {
    color: #fff;
}

NativeScript + Angular

import { NativeScriptMaterialActivityIndicatorModule } from "nativescript-material-activityindicator/angular";

@NgModule({
    imports: [
        NativeScriptMaterialActivityIndicatorModule,
        ...
    ],
    ...
})
<MDActivityIndicator busy="true"></MDActivityIndicator>

NativeScript + Vue

import Vue from 'nativescript-vue';
import ActivityIndicatorPlugin from 'nativescript-material-activityindicator/vue';

Vue.use(ActivityIndicatorPlugin);
<MDActivityIndicator busy="true"/>

Attributes

Inherite from Nativescript Activity Indicator so it already has all the same attributes

Package Sidebar

Install

npm i nativescript-material-activityindicator

Weekly Downloads

0

Version

3.3.2

License

Apache-2.0

Unpacked Size

61.9 kB

Total Files

32

Last publish

Collaborators

  • farfromrefuge