new MobileSearchDialog(config)
A dialog that contains location search
Parameters:
Name |
Type |
Description |
config |
Object
|
Configuration for this object. The config supplied directly extends the control |
Extends
Members
alreadyOpen
Properties:
Name |
Type |
Description |
alreadyOpen |
boolean
|
If set to true, the dialog is already open |
- Inherited From:
closeText
Properties:
Name |
Type |
Description |
closeText |
string
|
The text added to the close button |
- Inherited From:
delay
Properties:
Name |
Type |
Description |
delay |
number
|
The delay, in milliseconds, between a key being pressed and a search being performed |
errorText
Properties:
Name |
Type |
Description |
nothingFoundText |
string
|
The text to display in the event of an error |
events
Properties:
- Inherited From:
Properties:
Name |
Type |
Description |
extraResultsToFetch |
number
|
The amount results to fetch each time the more data button is clicked |
Properties:
Name |
Type |
Attributes |
Description |
footerId |
string
|
<nullable>
|
The id of the footer element |
- Inherited From:
(constant) HEIGHT_SPACER :number
Used to give a constant spacing between the top of a dialog and the top element on the screen
Type:
- Inherited From:
heightFactor
Properties:
Name |
Type |
Description |
heightFactor |
number
|
Used when calculating the height of the dialog |
- Inherited From:
id
Properties:
Name |
Type |
Description |
id |
string
|
The id for this control |
- Inherited From:
initialAmountOfResultsToFetch
Properties:
Name |
Type |
Description |
initialAmountOfResultsToFetch |
number
|
The amount of results to fetch the first time a search is performed |
initialText
Properties:
Name |
Type |
Description |
initialText |
string
|
The intial text to display in the textbox |
isMobileDevice
Properties:
Name |
Type |
Description |
isMobileDevice |
boolean
|
If set to true, the device this dialog is running on is a mobile device |
- Inherited From:
loadingImageUrl
Properties:
Name |
Type |
Description |
loadingImageUrl |
string
|
The url to the loading image |
(protected) m_content
Properties:
Name |
Type |
Description |
m_content |
Object
|
The jquery object that contains the content for this dialog |
- Inherited From:
(protected) m_dialog
Properties:
Name |
Type |
Description |
m_dialog |
Object
|
The jquery object that is this dialog |
- Inherited From:
(protected) m_errorDialog
Properties:
Name |
Type |
Description |
m_errorDialog |
Cadcorp.UI.ErrorDialog
|
The jquery dialog used to display any error for this dialog |
- Inherited From:
Properties:
Name |
Type |
Attributes |
Description |
m_menu |
Object
|
<nullable>
|
The jquery object that is the menu |
- Inherited From:
Properties:
Name |
Type |
Attributes |
Description |
m_menuItem |
Object
|
<nullable>
|
The jquery object that is the menu item |
- Inherited From:
mapId
Properties:
Name |
Type |
Attributes |
Description |
mapId |
string
|
<nullable>
|
The id of the map this dialog is linked to |
- Inherited From:
Properties:
Name |
Type |
Attributes |
Description |
menuId |
string
|
<nullable>
|
The id of the menu control |
- Inherited From:
Properties:
Name |
Type |
Attributes |
Description |
menuItemId |
string
|
<nullable>
|
The id of the menu item control this dialog is triggered by |
- Inherited From:
minCharsBeforeSearch
Properties:
Name |
Type |
Description |
minCharsBeforeSearch |
number
|
The minimum number of characters that must be input into the textbox element before a search will be performed |
modal
Properties:
Name |
Type |
Description |
modal |
boolean
|
If set to true, the dialog will have modal behavior; other items on the page will be disabled, i.e., cannot be interacted with. Modal dialogs create an overlay below the dialog but above other page elements. |
- Inherited From:
- Default Value:
moreDataText
Properties:
Name |
Type |
Description |
moreDataText |
string
|
The text to display if more data is available |
nothingFoundText
Properties:
Name |
Type |
Description |
nothingFoundText |
string
|
The text to display if no results are found |
position
Properties:
Name |
Type |
Description |
position |
object
|
jQueryUI position to locate this dialog |
prefix
Properties:
Name |
Type |
Description |
prefix |
string
|
The asp.net client id |
- Inherited From:
resultClearEventHandler
Properties:
Name |
Type |
Description |
resultClearEventHandler |
Cadcorp.UI.NoticeBoard.MobileSearchDialog~resultsClearedCallback
|
Callback used when the clear results button is clicked |
resultSelectedEventHandler
Properties:
Name |
Type |
Description |
resultSelectedEventHandler |
Cadcorp.UI.NoticeBoard.MobileSearchDialog~resultSelectedCallback
|
Callback used when a result is selected |
searches
Properties:
Name |
Type |
Description |
searches |
Array.<Cadcorp.UI.NoticeBoard.MobileSearchDialog.SearchConfig>
|
Configuration objects for the searches |
searchingText
Properties:
Name |
Type |
Description |
searchingText |
string
|
The text to display while a search is performed |
serviceUrl
Properties:
Name |
Type |
Description |
serviceUrl |
string
|
The url to the search webservice |
stayOpen
Properties:
Name |
Type |
Description |
stayOpen |
boolean
|
If set to true, stops the dialog from closing |
- Inherited From:
titleText
Properties:
Name |
Type |
Description |
titleText |
string
|
The title text for this dialog |
- Inherited From:
Methods
(protected) calculateInitialWidth() → {number}
Calculates the initial width of the dialog. This can called before create.
- Inherited From:
Returns:
The width of the dialog in pixels
-
Type
-
number
(protected) calculateMaxHeight() → {number}
Calculates the height of the dialog. If menu and footerId are not null the height of these 2 elements is subtracted from the height so the dialog always fits on the page.
- Inherited From:
Returns:
The height of the dialog in pixels
-
Type
-
number
(protected) calculateWidth() → {number}
Calculates the width of the dialog. This method should only be called after create has been called.
- Inherited From:
Returns:
The width of the dialog in pixels
-
Type
-
number
create(userDialogConfig)
Creates the jQuery UI dialog.
The userDialogConfig parameter is used to override the default options.
Parameters:
Name |
Type |
Description |
userDialogConfig |
Object
|
An object containing options for this dialog. Any valid option for the jQuery Ui Dialog widget can be supplied |
- Inherited From:
destroy()
Destroys this dialog
- Inherited From:
Calculates the bottom position for this dialog.
If footerId is not null the top of the footer is used to calculate the bottom position, otherwise the full height of the page is used.
- Inherited From:
Returns:
The bottom left coordinate of this dialog
-
Type
-
Cadcorp.UI.DialogBase.Position
Gets the menu object, if any, for this dialog
- Inherited From:
Returns:
The menu linked to this dialog
-
Type
-
Cadcorp.UI.Menu
Gets the height of the linked menu in pixels.
If menuId is null 0 is returned, otherwise the height of the menu.
- Inherited From:
Returns:
The height of the linked menu
-
Type
-
number
Gets the current size of this dialog.
- Inherited From:
Returns:
The size of the dialog
-
Type
-
Cadcorp.UI.DialogBase.Size
Calculates the top position for this dialog.
If menuId is not null the bottom of the menu is used to calculate the top position
- Inherited From:
Returns:
The top left coordinate of this dialog
-
Type
-
Cadcorp.UI.DialogBase.Position
hide()
Hides this dialog.
- Inherited From:
isOpen() → {boolean}
Determines if this dialog is open or not.
- Inherited From:
Returns:
True if the dialog is open, otherwise false
-
Type
-
boolean
(protected) resizeHandler()
Event handler for the window resize event
- Inherited From:
(protected) resultSelected(eventArgs)
Event handler for rowselected. Calls this.resultSelectedEventHandler
Parameters:
Name |
Type |
Description |
eventArgs |
Object
|
|
show()
Shows this dialog, creating it if required.
- Inherited From:
Events
beforeclose
Before close event
Type:
Properties:
- Inherited From:
close
Close event
Type:
Properties:
- Inherited From:
open
Open event
Type:
Properties:
- Inherited From: