融合表 - 如何使用自定义卡包装数据? [英] Fusion tables - how do I get the data to wrap with custom cards?

查看:86
本文介绍了融合表 - 如何使用自定义卡包装数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个Fusion表,可以从电子表格中导入注释和详细信息。但是,数据不会换行,而是必须使用'overflow:auto'来允许滚动条。如何让数据自动换行?



我尝试过:



Fusion Tables的自定义卡片代码:



{template .contents}

Hi,
I have a Fusion Table which imports notes and details from a spreadsheet. However, the data doesn't wrap, instead I have had to use 'overflow:auto' to allow for a scroll bar. How do I get the data to automatically wrap?

What I have tried:

The Fusion Tables 'Custom Cards' code:

{template .contents}

<div class="googft-card-view">

<div>


{if $data.formatted['Category']=='Warranty'}
 {$data.formatted['Category']}  <br>
{else}
{if $data.formatted['Category']=='Insurance'}
 {$data.formatted['Category']}  <br>
{else}
{if $data.formatted['Category']=='Oliver'}
 {$data.formatted['Category']}  <br>
{/if}{/if}{/if}


{if $data.formatted.Date}
Date:  {$data.formatted.Date}<br>
{/if} 


{if $data.formatted.Name}
Name:  {$data.formatted.Name}<br>
{/if}


{if $data.formatted.Serial}
Serial Number:  {$data.formatted.Serial} <br>
{/if}




{if $data.formatted['Repair ID']}
Repair ID:  {$data.formatted['Repair ID']}<br>
{/if}


{if $data.formatted.Problem}
Problem:  {$data.formatted.Problem}<br>
{/if}


{if $data.formatted.Barcode}
Barcode:  {$data.formatted.Barcode}<br>
{/if}


{if $data.formatted['TCS - Repair Notes']}
Notes:  {$data.formatted['TCS - Repair Notes']}<p></p><br>
{/if}


      </div>
</div>
{/template}

推荐答案

data.formatted ['Category'] =='保修'}
{
data.formatted['Category']=='Warranty'} {

data.formatted ['Category']} < br >
{else}
{if
data.formatted['Category']} <br> {else} {if


data.formatted ['Category'] =='保险'}
{
data.formatted['Category']=='Insurance'} {


这篇关于融合表 - 如何使用自定义卡包装数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆