@nativescript-community/ui-material-activityindicator
Material Design Activity Indicator expresses an unspecified wait time.
npm i --save @nativescript-community/ui-material-activityindicator
- Version: 7.2.67
- GitHub: https://github.com/nativescript-community/ui-material-components/tree/master
- NPM: https://www.npmjs.com/package/%40nativescript-community%2Fui-material-activityindicator
- Downloads:
- Last Day: 9
- Last Week: 439
- Last Month: 1556
NativeScript Material Circular progress indicator
Material Design's Circular progress indicator component for NativeScript.
Contents
Installation
For NativeScript 7.0+
tns plugin add @nativescript-community/ui-material-activityindicator
For NativeScript 6.x
tns plugin add nativescript-material-activityindicator
If using tns-core-modules
tns plugin add [email protected]
Be sure to run a new build after adding plugins to avoid any issues.
Changelog
FAQ
Usage
Plain NativeScript
IMPORTANT: Make sure you include xmlns:mda="@nativescript-community/ui-material-activityindicator"
on the Page element.
XML
<Page xmlns:mda="@nativescript-community/ui-material-activityindicator">
<StackLayout horizontalAlignment="center">
<mda:ActivityIndicator busy="true"/>
</StackLayout>
</Page>
CSS
mdactivityindicator {
color: #fff;
}
NativeScript + Angular
import { NativeScriptMaterialActivityIndicatorModule } from "@nativescript-community/ui-material-activityindicator/angular";
@NgModule({
imports: [
NativeScriptMaterialActivityIndicatorModule,
...
],
...
})
<MDActivityIndicator busy="true"></MDActivityIndicator>
NativeScript + Vue
import Vue from 'nativescript-vue';
import ActivityIndicatorPlugin from '@nativescript-community/ui-material-activityindicator/vue';
Vue.use(ActivityIndicatorPlugin);
<MDActivityIndicator busy="true"/>
API
Attributes
Inherite from NativeScript Activity Indicator so it already has all the same attributes