2.0.0 • Published 2 years 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
2 years ago
0.0.29
2 years ago
1.2.0
2 years ago
1.2.1
2 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.0
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.3
4 years ago
0.0.28
4 years ago
0.0.27
4 years ago
0.0.26
4 years ago
0.0.25
4 years ago
0.0.21
4 years ago
0.0.22
4 years ago
0.0.23
4 years ago
0.0.20
4 years ago
0.0.17
4 years ago
0.0.18
4 years ago
0.0.19
4 years ago
0.0.16
4 years ago
0.0.14
4 years ago
0.0.15
4 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago