32 lines
1.2 KiB
Cheetah
32 lines
1.2 KiB
Cheetah
|
<?js
|
||
|
var data = obj;
|
||
|
var self = this;
|
||
|
|
||
|
var ryba = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||
|
|
||
|
|
||
|
?>
|
||
|
|
||
|
<span class="params">
|
||
|
<span class="left-circle-bracket">(</span>
|
||
|
|
||
|
<?js
|
||
|
if(data){
|
||
|
var a = 0;
|
||
|
while(a < data.length){
|
||
|
var param = data[a];
|
||
|
//console.log(JSON.stringify(param, true, 3))
|
||
|
if(!param) { a++; continue; }
|
||
|
//console.log(JSON.stringify(param,true,3))
|
||
|
var type = param.type.names[0];
|
||
|
?>
|
||
|
<span class="param">
|
||
|
<span class="name"><?js= param.name ?></span><?js if(a < data.length - 1) { ?>,<?js } ?>
|
||
|
</span>
|
||
|
<?js
|
||
|
a++;
|
||
|
}
|
||
|
}
|
||
|
?>
|
||
|
<span class="right-circle-bracket">)</span>
|
||
|
</span>
|