PageSourceSearch

https://www.findbuch.net/hp/valhalla-js-3.6-min/lib/displayset.js

js findbuch.net collected 2026-10-02 06:31:16 UTC 4,826 bytes, 6 lines download raw bytes

1var icon='f1c0';$('head').append('<style type="text/css">[data-module="DisplaySet"][data-module-status="unset"]::before { content : "\\'+icon+'"; }</style>');$('head').append('<style type="text/css">button.icon.module_displayset:before{ content : "\\'+icon+'";}</style>');makeIconCSS('.icon.module_displayset',icon);(function(){var view=new View();view.name='Module_DisplaySet';view.fields['elementId']={'name':'elementId','type':'string','xmlStorage':{'attribute':'id'},'title':'ID'};view.fields['style']={'name':'style','type':'string','xmlStorage':{'attribute':'style'}};view.fields['class']={'name':'class','type':'string','xmlStorage':{'attribute':'class'}};view.fields['view']={'name':'view','type':'string','xmlStorage':{'attribute':'data-view'}};view.fields['variant']={'name':'variant','type':'string','xmlStorage':{'attribute':'data-variant'}};view.fields['variant-details']={'name':'variant-details','type':'string','xmlStorage':{'attribute':'data-variant-details'}};view.fields['entity_placeholder']={'name':'entity_placeholder','type':'string','xmlStorage':{'attribute':'data-entity-placeholder'}};view.fields['query']={'name':'query','type':'string','xmlStorage':{'attribute':'data-query'}};view.fields['relation']={'name':'relation','type':'string','xmlStorage':{'attribute':'data-relation'}};view.fields['host']={'name':'host','type':'string','xmlStorage':{'attribute':'data-host'}};view.fields['path']={'name':'path','type':'string','xmlStorage':{'attribute':'data-path'}};view.fields['dynamic']={'name':'dynamic','type':'boolean','default':true,'xmlStorage':{'toggleClass':'enhancement_sub'}};view.fields['selectable']={'name':'selectable','type':'string','xmlStorage':{'attribute':'data-selectable'}};view.fields['header']={'name':'header','type':'string','xmlStorage':{'attribute':'data-header'}};Model.addView(view);viewToEditor({'viewName':view.name,'navigation':false})})();function DisplaySetModule(options){var module=Module(options,'DisplaySet');if(module.isInitialized)
2return module;console.log('ini DisplaySet');var element=module.element;var entity=XMLStorage.getEntity(Model.views['Module_'+module.name],element);module.entity=entity;$(entity).on('stored',function(){module.updatePagesItem();module.update()});module.update=function(){module.isSet((entity.get('view')!=''));if(module.isSet()==false)return;var queryString=entity.query;if(entity.relation=="entity"){var relationEntity=getEntity(module.element.parent());if(relationEntity==false){console.log('RELATION ENTITY NOT FOUND');module.element.append('RELATION NOT FOUND');return}else{var relationString=relationEntity.view.name+'.'+relationEntity.view.getPrimaryField().name+' = "'+relationEntity.getPrimary('string')+'"';if(queryString=='')queryString='WHERE '+relationString;else if(queryString.indexOf('WHERE')!==-1)queryString=queryString.replace('WHERE','WHERE '+relationString+' AND');else queryString=queryString+' '+relationString;alert(queryString)}}
3var dsOptions={'view':entity.get('view'),query:new Query(queryString),callback:function(){}};if(entity.header=='false')dsOptions.header=false;else if(entity.header!='')dsOptions.header=entity.header;if(entity.get('selectable')!='')dsOptions.selectable={type:entity.get('selectable'),hotspotSelector:'this'};if(typeof entity.get('host')!='undefined'&&entity.get('host')!='')dsOptions.query.host=entity.get('host');if(typeof entity.get('path')!='undefined'&&entity.get('path')!='')dsOptions.query.path=entity.get('path');if(typeof entity.get('variant')!='undefined'&&entity.get('variant')!='')dsOptions.variant=entity.get('variant');if(typeof entity.get('variant-details')!='undefined'&&entity.get('variant-details')!='')dsOptions.variant_details=entity.get('variant-details');if(typeof entity.get('entity_placeholder')!='undefined'&&entity.get('entity_placeholder')!='')dsOptions.entity_placeholder=entity.get('entity_placeholder');module.displaySet=new DisplaySet(dsOptions);module.element.html(module.displaySet.element)}
4module.getEditorControl=function(){var control=$('<li></li>');var button=makeButton({'icon':'module_displayset','hint':'Edit dataset'});control.append(button);
4button.on('click',function(){module.edit()});return control};module.edit=function(){var entity=module.entity;var params={};params.content=$('<div></div>');params.content.append(new Display({'entity':entity,'editable':true,tagName:'div'}).element);params.store=function(){entity.store()};editorDialog(params)}
5module.element.on('dblclick',function(){if(module.isSet())return false;module.edit();return false});if(entity.get('dynamic'))module.update();module.isInitialized=true;return module}
6$(document).on('initialize_DisplaySet',function(event,element){DisplaySetModule(element)});$(document).on('readyOnce',function(){$('[data-module="DisplaySet"]').each(function(){DisplaySetModule(this)})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.