multiple: boolean (Optional) - Allow selection of multiple elements.extensions: Array of string - File Extensions.Returns: any import( options ) Arguments: title: string (Optional) - Window title for the file picker.resource_id: string (Optional) - The resource identifier group, used to allow the file dialog (open and save) to remember where it was last used.startpath: string (Optional) - Location where the file dialog starts off.savetype: WriteType or See types (Optional).readtype: ReadType or See types (Optional).Reads the content from the specified files. Returns: boolean dispatchEvent( event_name, data ) Arguments:ĪddListener( event_names, callback ) Arguments:Īdds a single-use event listener Arguments: Returns: Deletable addFlag( flag ) Arguments: Returns an object that is deletable Arguments: Defaults to Blockbench iconĪdds custom CSS code to Blockbench, globally. icon: string (Optional) - Url or data url pointing to an icon.Opens the specified link in the browser or in a new tab Arguments: TextPrompt( title, value, callback ) Arguments: checkboxes: See types - Adds checkboxes to the bottom of the message box.When clicked, the message box closes with the string ID of the command as first argument. commands: See types (Optional) - Display a list of actions to do in the dialog.cancel: number - Index of the cancel button within the buttons array.confirm: number - Index of the confirm button within the buttons array.If omitted, the main status bar will be selected bar: string (Optional) - ID of the bar element.time: number (Optional) - Time over which the bar is animated, in miliseconds.progress: number - Progress of the bar between 0 and 1.Set the value of a progress bar Arguments: time: number (Optional) - Time in miliseconds that the message stays up.Shows a passing message in the middle of the screen Arguments: Returns: HTMLElement showQuickMessage( message ) icon: string - Material Icons, Fontawesome or custom icon string.Resolves an icon string as a HTML element Arguments: Reloads the Blockbench window isNewerThan( version )Ĭhecks if Blockbench is newer than the specified version Arguments:Ĭhecks if Blockbench is older than the specified version Arguments: URL queries when opened as web app using a link that contained queries findFileFromContent( base_directories, options, check_file ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |