The '''BrowserCreateDirectoryDialogue''' component is used mainly in the inventory screen when creating a new directory in the [[inventory]].
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|_browser|BrowserDialog|
|_browser|BrowserDialog| The source browser Component.
|_callback|WorldDelegate|
|_callback|{{RootFieldType|SyncDelegate`1|[[#CreateHandler|BrowserCreateDirectoryDialog.CreateHandler]]}}|TypeAdv1=true| A sync delegate to call when the Create Folder dialogue is confirmed.
|_text|Text|
|_text|'''[[Component:Text|Text]]'''|TypeAdv2=true| The text for the Create Directory dialouge box.
|_textField|TextField|
|_textField|'''[[Component:TextField|TextField]]'''|TypeAdv3=true| The text field that is the name of the new directory.
}}
}}
== Sync Delegates ==
{{Table ComponentTriggers
|Create:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Handles creating a directory in the current directory.
|Cancel:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Handles canceling creating a directory.
}}
== CreateHandler ==
A sync delegate that takes a name and an "out string message" and modifies the message coming in. Returns a boolean.
<!--T:3-->
<!--T:3-->
Line 24:
Line 33:
== Examples ==
== Examples ==
The create directory dialogue in the inventory screen.