FileEditor.js 365 B

1234567891011121314151617
  1. import { StringInput, Element } from '../../libs/flow.module.js';
  2. import { BaseNode } from '../core/BaseNode.js';
  3. export class FileEditor extends BaseNode {
  4. constructor( file ) {
  5. super( 'File', 1, file, 250 );
  6. this.file = file;
  7. this.nameInput = new StringInput( file.name ).setReadOnly( true );
  8. this.add( new Element().add( this.nameInput ) );
  9. }
  10. }