Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var sportsData = ['Badminton', 'Cricket', 'Football', 'Golf', 'Tennis'];
// initialize AutoComplete component
var listObj = new ej.dropdowns.AutoComplete({
dataSource: sportsData,
floatLabelType: "Auto" ,
// set placeholder to AutoComplete input element
placeholder: "Select games"});
listObj.appendTo('#atcelement');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ let atcObject: AutoComplete = new AutoComplete({
//set the data to dataSource property
dataSource: sportsData,
// set placeholder to AutoComplete input element
placeholder: "Find a game"
placeholder: "Find a game" ,

floatLabelType: "auto"
floatLabelType: "Auto"
});

// render initialized AutoComplete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
<link href="https://cdn.syncfusion.com/ej2/20.3.56/ej2-dropdowns/styles/material.css" rel="stylesheet">


<script src="https://cdn.syncfusion.com/ej2/20.4.38/dist/ej2.min.js" type="text/javascript"></script>
<script src="https://cdn.syncfusion.com/ej2/20.4.38/dist/ej2.min.js" type="text/javascript"></script>
<style>
.e-input-group.e-control-wrapper.e-float-input .e-float-text::after {
content: '*';
color: red;
}
</style>
</head>

<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
<link href="https://cdn.syncfusion.com/ej2/20.3.56/ej2-inputs/styles/material.css" rel="stylesheet" />
<link href="https://cdn.syncfusion.com/ej2/20.3.56/ej2-dropdowns/styles/material.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js"></script>
<script src="systemjs.config.js"></script>
<script src="systemjs.config.js"></script>

<style>
.e-input-group.e-control-wrapper.e-float-input .e-float-text::after {
content: '*';
color: red;
}
</style>
</head>

<body>
Expand Down