First commit
This commit is contained in:
33
application/elements/fileChooser/fileChooser.file.icon.js
Normal file
33
application/elements/fileChooser/fileChooser.file.icon.js
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
import icon from "../icon.js";
|
||||
|
||||
export default class fileChooserFileIcon extends icon{
|
||||
|
||||
width = 50;
|
||||
|
||||
height = 50;
|
||||
|
||||
layers = 1;
|
||||
|
||||
backgroundSize = "contain!important"
|
||||
|
||||
create() {
|
||||
|
||||
console.log("icon type", this.parent.fileType);
|
||||
|
||||
|
||||
if( this.parent.fileType == "file" ) {
|
||||
|
||||
this.setImage( "assets/images/icons/file.png" );
|
||||
|
||||
}
|
||||
|
||||
if( this.parent.fileType == "directory" ) {
|
||||
|
||||
this.setImage( "assets/images/icons/folder.png" )
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user