Page History
Sv translation | ||||
---|---|---|---|---|
| ||||
Custom view can be used, to create your own javascript application. This application will then be executed in your view.
To add a new Custom view, hover over free place and click on Other view type and than Custom. The Add custom view dialog box will appear. Settings
Custom view rendererIt's expected that this extension contains a Javascript. The name of the function can be defined using ext parameter "mainFunction" or it's generated as "main_ext_name". So e.g. there's the ext param with value "customViewExtMain", so the JS file has main method "customViewExtMain" and that is called with 3 parameters - jQuery, container, conf. Data formulaNow when you import the attached extension and define this view, you can define "Data formula" where its return value is passed to the JS in JSON format. In this case, with this extension, the data formula can be this:
|
Sv translation | ||||
---|---|---|---|---|
| ||||
カスタムビューは、独自のJavascriptアプリケーションを作成するために使用することができます。このアプリケーションは、ビューの中で実行されます。
カスタムビューを新規に追加するには、フリープレイスにカーソルを合わせ、「その他のビュータイプ」→「カスタム」をクリックします。カスタムビューの追加]ダイアログボックスが表示されます。 設定
カスタムビューレンダラーこの拡張機能には、Javascriptが含まれていることが期待されます。関数の名前はextパラメータ "mainFunction "を使って定義するか、"main_ext_name "として生成されることがあります。 例えば、extパラメータに "customViewExtMain "という値がある場合、JSファイルには "customViewExtMain "というメインメソッドがあり、jQuery, container, confという3つのパラメータで呼ばれます。 データ式付属の拡張機能をインポートしてこのビューを定義すると、その戻り値がJSにJSON形式で渡される「データ式」を定義することができます。この場合、この拡張機能を使うと、データ式はこうなります:
|