-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
844945c
commit cddad98
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package com.osiris.desku.ui.display; | ||
|
||
import com.osiris.desku.ui.Component; | ||
|
||
public class Spinner extends Component<Spinner> { | ||
public Spinner() { | ||
typeBorder(); | ||
primary(); | ||
} | ||
|
||
// TYPES | ||
|
||
public Spinner typeBorder(){ | ||
addClass("spinner-border"); | ||
return this; | ||
} | ||
|
||
public Spinner typeGrow(){ | ||
addClass("spinner-grow"); | ||
return this; | ||
} | ||
|
||
// SIZES | ||
|
||
public Spinner sizeS() { | ||
addClass("spinner-border-sm"); | ||
return this; | ||
} | ||
|
||
public Spinner sizeM() { | ||
removeClass("spinner-border-sm"); | ||
removeClass("spinner-border-lg"); | ||
return this; | ||
} | ||
|
||
public Spinner sizeL() { | ||
addClass("spinner-border-lg"); | ||
return this; | ||
} | ||
|
||
// VARIANTS | ||
|
||
public Spinner primary() { | ||
addClass("text-primary"); | ||
return this; | ||
} | ||
|
||
public Spinner secondary() { | ||
addClass("text-secondary"); | ||
return this; | ||
} | ||
|
||
public Spinner success() { | ||
addClass("text-success"); | ||
return this; | ||
} | ||
|
||
public Spinner danger() { | ||
addClass("text-danger"); | ||
return this; | ||
} | ||
|
||
public Spinner warning() { | ||
addClass("text-warning"); | ||
return this; | ||
} | ||
|
||
public Spinner info() { | ||
addClass("text-info"); | ||
return this; | ||
} | ||
|
||
public Spinner light() { | ||
addClass("text-light"); | ||
return this; | ||
} | ||
|
||
public Spinner dark() { | ||
addClass("text-dark"); | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters