mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
feat(forms): add example selects with valid styling (#286)
Add another card to the form inputs view displaying selects (single and multiple). Fix options styling. Related to issue #282
This commit is contained in:
parent
40aa2ed0ae
commit
fd09e652c8
6 changed files with 45 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './selectInputs.component';
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'select-inputs',
|
||||||
|
template: require('./selectInputs.html')
|
||||||
|
})
|
||||||
|
export class SelectInputs {
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="exampleSelect1">Example select</label>
|
||||||
|
<select class="form-control" id="exampleSelect1">
|
||||||
|
<option>1</option>
|
||||||
|
<option>2</option>
|
||||||
|
<option>3</option>
|
||||||
|
<option>4</option>
|
||||||
|
<option>5</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="exampleSelect2">Example multiple select</label>
|
||||||
|
<select multiple class="form-control" id="exampleSelect2">
|
||||||
|
<option>1</option>
|
||||||
|
<option>2</option>
|
||||||
|
<option>3</option>
|
||||||
|
<option>4</option>
|
||||||
|
<option>5</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
@ -10,7 +10,11 @@
|
||||||
<group-inputs></group-inputs>
|
<group-inputs></group-inputs>
|
||||||
</ba-card>
|
</ba-card>
|
||||||
|
|
||||||
|
<ba-card title="Selects" baCardClass="with-scroll">
|
||||||
|
<select-inputs></select-inputs>
|
||||||
|
</ba-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<ba-card title="Validation States" baCardClass="with-scroll">
|
<ba-card title="Validation States" baCardClass="with-scroll">
|
||||||
<validation-inputs></validation-inputs>
|
<validation-inputs></validation-inputs>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ import { ValidationInputs } from './components/inputs/components/validationInput
|
||||||
import { GroupInputs } from './components/inputs/components/groupInputs';
|
import { GroupInputs } from './components/inputs/components/groupInputs';
|
||||||
import { CheckboxInputs } from './components/inputs/components/checkboxInputs';
|
import { CheckboxInputs } from './components/inputs/components/checkboxInputs';
|
||||||
import { Rating } from './components/inputs/components/ratinginputs';
|
import { Rating } from './components/inputs/components/ratinginputs';
|
||||||
|
import { SelectInputs } from './components/inputs/components/selectInputs';
|
||||||
|
|
||||||
import { InlineForm } from './components/layouts/components/inlineForm';
|
import { InlineForm } from './components/layouts/components/inlineForm';
|
||||||
import { BlockForm } from './components/layouts/components/blockForm';
|
import { BlockForm } from './components/layouts/components/blockForm';
|
||||||
|
|
@ -39,6 +40,7 @@ import { WithoutLabelsForm } from './components/layouts/components/withoutLabels
|
||||||
GroupInputs,
|
GroupInputs,
|
||||||
CheckboxInputs,
|
CheckboxInputs,
|
||||||
Rating,
|
Rating,
|
||||||
|
SelectInputs,
|
||||||
InlineForm,
|
InlineForm,
|
||||||
BlockForm,
|
BlockForm,
|
||||||
HorizontalForm,
|
HorizontalForm,
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,14 @@ select.form-control {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select.form-control:not([multiple]) option {
|
||||||
|
color: $dropdown-text;
|
||||||
|
}
|
||||||
|
|
||||||
|
select.form-control[multiple] option {
|
||||||
|
color: $default-text;
|
||||||
|
}
|
||||||
|
|
||||||
textarea.form-control {
|
textarea.form-control {
|
||||||
height: 96px;
|
height: 96px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue