🤩
Windframe Import Update is finally here.

Select

Angular Bootstrap Select

Angular Bootstrap Select is a form control, that after the click displays a collapsible list of multiple values which can be used in forms, menus or surveys.

Contrast Angular Bootstrap Select enables you to use and arrow keys to navigate through options and use key to select required option (works for stateful select).

Importing the Angular Bootstrap Select Component

To use the Contrast Angular Bootstrap Rating component, you import CDBSelect into your project.

typescript
import {SelectModule } from 'cdbangular';

Default Select

The CDBSelect prop takes in an [option] prop whose value is an array of different user options.

Angular Bootstrap Select Default

html
html
<CDBSelect [options]='option' selected="Choose an option"></CDBSelect>
typescript
typescript
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-select',
templateUrl: './select.component.html',
styleUrls: ['./select.component.scss'],
})
export class SelectComponent implements OnInit {
option = [
{
text: 'Option 1',
value: '1',
},
{
text: 'Option 2',
value: '2',
},
{
text: 'Option 3',
value: '3',
},
];
constructor() {}
ngOnInit(): void {}
}

API Reference: Contrast Angular Bootstrap Select Props

This section will build on your information about the props you get to use with the Contrast Angular Bootstrap Select component. You will find out what these props do, their default values, and how you would use them in your code.

The table below lists other prop options of the CDBSelect.

NameTypeDefaultDescriptionExample
classStringAdds custom classesclass="myClass"
optionClassNameStringAdds custom classes to optionsoptionClassName="my-class"
selectedStringSet default select text content.selected="Choose one"
optionsArray of ObjectsSets options array as source of data. This property is used in alternative Select****2 version.options=[options]

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast