Admin-Client¶
-
getTopicList
(topic, filter, callback, setProgress)¶ Get list from server using a string filter. It also updates the status bar.
-
class
App
(props)¶ Main React Class
Main constructor
-
App.
addCopyEventListener
()¶ Listens for the broswer copy command triggered by either Ctrl+C or from the browser menu.
Copies the current filtered list to the clipboard.
-
App.
convertListtoTabDelimited
(list)¶ Convert a json list to a tab delimited string.
Converts flat json file to a tab delimited string.
- Arguments
list – json string
-
App.
displayPage
(topic)¶ Shows a specific page within the main area
This sets the show state within the List React Component. This then doesn’t render the page.
- Arguments
topic (string) – name of the page to display e.g. topics, points, devices.
-
App.
getCurrentPage
()¶ Gets the reference to the currently shown page.
Checks the show state of each page and returns the reference to the List Component.
- Returns
ObjectListComponent –
-
App.
queryFilteredList
(ref)¶ Requests an update of the currently displayed list from the servers.
A request is sent to the web server which then broadcasts a request to update the list. This is then passed back and stored within an object list.
- Arguments
ref (event) – reference to the event that triggered the update. Expecting an on key press event.
-