def group(context, *args, **kwargs): if 'id' not in kwargs or not kwargs['id']: raise Exception("Must supply an id for 'groupcontext'") id = kwargs['id'] add_statics(context, js=["appfx/splunkui/groupcontext.js"]) options = {'app': context['app_name'], 'contexts': args} options.update(kwargs) return component_context(context, "appfx-groupcontext", id, "context", options)
def group(context, *args, **kwargs): if 'id' not in kwargs or not kwargs['id']: raise Exception("Must supply an id for 'groupcontext'") id = kwargs['id'] add_statics(context, js=["appfx/splunkui/groupcontext.js"]) options = { 'app': context['app_name'], 'contexts': args } options.update(kwargs) return component_context(context, "appfx-groupcontext", id, "context", options)
def search(context, id, **kwargs): add_statics(context, js=["appfx/splunkui/searchcontext.js"]) options = {'app': context['app_name']} options.update(kwargs) return component_context(context, "appfx-searchcontext", id, "context", options)
def require(context, *args, **kwargs): args = list(args) add_statics(context, js=args) return ''
def search(context, id, **kwargs): add_statics(context, js=["appfx/splunkui/searchcontext.js"]) options = { 'app': context['app_name'] } options.update(kwargs) return component_context(context, "appfx-searchcontext", id, "context", options)
def require(context, *args, **kwargs): args = list(args) add_statics(context, js=args); return ''