本文整理汇总了Python中ClientSide类的典型用法代码示例。如果您正苦于以下问题:Python ClientSide类的具体用法?Python ClientSide怎么用?Python ClientSide使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ClientSide类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: jsSetNavigationIndex
def jsSetNavigationIndex(self, index):
"""
Creates the javascript to switch to a different position within the items:
index - the first item you want to appear in your pages results
"""
return "WebElements.get('%(id)sIndex').value = '%(index)d';%(handlers)s;" % {
"id": self.fullId(),
"index": index,
"handlers": "\n".join([ClientSide.var(result) for result in self.emit("jsIndexChanged")]),
}
示例2: toggleClass
def toggleClass(self, className):
return ClientSide.toggleClass(self, className)
示例3: showIfSelected
def showIfSelected(self, option, elementToShow):
return ClientSide.showIfSelected(option, elementToShow, self)
示例4: selectedOption
def selectedOption(self):
return ClientSide.selectedOption(self)
示例5: deincrement
def deincrement(self, min=None):
return ClientSide.deincrement(self, min)
示例6: addOptions
def addOptions(self, options):
return ClientSide.addOptions(self, options)
示例7: increment
def increment(self, max=None):
return ClientSide.increment(self, max)
示例8: callOpener
def callOpener(self, method):
return ClientSide.callOpener(method)
示例9: confirm
def confirm(self, message, action):
return ClientSide.confirm(message, action)
示例10: serializeAll
def serializeAll(self):
return ClientSide.serializeAll(self)
示例11: serializeElements
def serializeElements(self, elements):
return ClientSide.serializeElements(self, elements)
示例12: stopOperation
def stopOperation(self, event):
return ClientSide.stopOperation(event)
示例13: showNotification
def showNotification(self, title, content, icon=IMAGES_URL + "info.png"):
return ClientSide.showNotification(title, content, icon)
示例14: getNotificationPermission
def getNotificationPermission(self):
return ClientSide.getNotificationPermission()
示例15: setValue
def setValue(self, value):
return ClientSide.setValue(self, value)