# ohos-Bootstrap
**Repository Path**: HarmonyOS-tpc/ohos-Bootstrap
## Basic Information
- **Project Name**: ohos-Bootstrap
- **Description**: ohos-Bootstrap is an Harmony library which provides custom views styled according to the Twitter Bootstrap Specification.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 2
- **Forks**: 0
- **Created**: 2021-04-01
- **Last Updated**: 2023-04-17
## Categories & Tags
**Categories**: harmonyos-advanced
**Tags**: None
## README
## ohos-Bootstrap
## Introduction
ohos-Bootstrap is an Harmony library which provides custom views styled according to the
[Twitter Bootstrap Specification](http://getbootstrap.com/). This allows you to spend more time
on development rather than trying to get a consistent theme across your app, especially if you are already familiar with the Bootstrap Framework.
## Usage Instruction
Supported Features with usage Examples
### BootstrapButton
A button that supports Glyph icons, and is themeable using Bootstrap Brands.
```xml
```
### BootstrapButtonGroup
Allows BootstrapButtons to be grouped together and their attributes controlled en masse.
```xml
```
### BootstrapProgressBar
Displays progress in a bar from 0-100, and animates updates to the current progress.
```xml
```
### BootstrapLabel
Displays non-clickable text in a widget similar to the BootstrapButton, sizable using H1-H6 elements.
```xml
```
### BootstrapEditText
Allows editing of text in a widget themed using BootstrapBrand.
```xml
```
### BootstrapCircleThumbnail
Displays images in a center-cropped Circular View, themed with BootstrapBrand.
```xml
```
### BootstrapThumbnail
Displays images in a rectangular View, themed with BootstrapBrand.
```xml
```
### BootstrapWell
Displays a view in a themed container.
```xml
```
### BootstrapDropDown
Displays a view with dropdown options, supplied by an array of strings, use public void setDropdownData(String[] dropdownData) API to supply string array, refer sample app for more details.
```xml
```
### BootstrapBadge
Displays view with the bootstrap badges.
```xml
```
### BootstrapAlert
Displays view with the bootstrap alert.
```xml
```
### BootstrapProgressBarGroup
Displays view with the bootstrap progressbars grouped.
```xml
```
## Installation instruction
```
Method 1:
Generate the .har package through the library and add the .har package to the libs folder.
Add the following code to the entry gradle:
implementation fileTree (dir: 'libs', include: ['*.jar', '*.har'])
Method 2:
In project level build.gradle:
allprojects{
repositories{
mavenCentral()
}
}
Add the following code to the entry gradle:
implementation 'io.openharmony.tpc.thirdlib:ohos-bootstrap:1.0.0'
```