2.0.0 • Published 5 months ago
ditagis-nebular v2.0.0
Hướng dẫn sử dụng
DnAutocomplete
Chức năng
- Kết hợp với nest-crud-typeorm-client để hiển thị dữ liệu ở dạng select, dữ liệu sẽ được truy vấn trên api theo từ khóa người dùng nhập
<dn-auto-complete
[service]="service"
fieldName="tenQuanHuyen"
fieldValue="maQuanHuyen"
>
</dn-auto-complete>
@Component({
templateUrl:'./component.html'
})
export class Component {
constructor(public service:QuanHuyenService){
}
export interface QuanHuyenEntity{
maQuanHuyen:string;
tenQuanHuyen:string;
}
@Injectable()
export class QuanHuyenService extends CrudBaseService<QuanHuyenEntity>{
constructor(http:HttpClient){
super({
apiUrl:'locahost:3000',
entity:'rest/quan-huyen'
},http);
}
}
}
Không hiển thị Dòng chữ Không có dữ liệu
<dn-auto-complete [displayNoValue]="false"> </dn-auto-complete>
Bắt sự kiện thay đổi dữ liệu khi tìm kiếm
<dn-auto-complete (valuesChange)="valuesChange($event)"> </dn-auto-complete>
public valuesChange(e:{ values: T[]; count: number }){
}
DnInput
<input placeholder="Demo DnInput" nbInput dnInput [label]="true" />
<input
placeholder="Demo DnInput"
nbInput
dnInput
labelFontWeight="600"
[label]="true"
/>
<nb-select placeholder="Demo DnInput" dnInput [label]="true">
<nb-option>Label</nb-option>
</nb-select>
import {DnInputModule} from 'ditagis-nebular'
@NgModule({
imports:[DnInputModule]
})
...
2.0.0
5 months ago
0.0.29
8 months ago
1.2.0
1 year ago
1.2.1
1 year ago
1.1.0
1 year ago
1.0.0
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.0
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.3
2 years ago
0.0.28
3 years ago
0.0.27
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.21
3 years ago
0.0.22
3 years ago
0.0.23
3 years ago
0.0.20
3 years ago
0.0.17
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.16
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago