CSVãµã¼ãã¼0.7
ååã¾ã§ã®ç¶æ ãCSVサーバー0.7ã¨ãã¦å ¬éãã¾ããã
æ´æ°å±¥æ´
- æ¤ç´¢ãã£ã«ã¿ã¼å ã§ãªã³ã¯ãã¯ãªãã¯ããæããå¦çä¸...ãã®è¡¨ç¤ºãããããã«ãã¾ããã
- ãã£ã«ã¿ã¼ä¸ã¯ããã¼ãã«ã®å¤æ ã強調表示ããããã«ãã¾ããããã£ã«ã¿ã¼ç¶æ ãã©ãããä¸ç®ã§å¤æã§ãã¾ãã
- ããã£ã«ã¿ã¼ã解é¤ããããã¯ãªãã¯ããã¨ããã£ã«ã¿ã¼ã解é¤ããç¶æ ãç¶æããã¾ããï¼ä»¥åã¯ãã®æã ãã§è§£é¤ããã¦ã次ã®ãã¼ã¸ãè¦ããçãä½ãæä½ãããã¨ãã£ã«ã¿ã¼ç¶æ ã«æ»ã£ã¦ãã¾ãããã ãããä¸æçã«ãã¨ããè¨èãå ¥ã£ã¦ããã®ã§ããï¼
- ããã£ã«ã¿ã¼ã追å ããªã³ã¯ãã¯ãªãã¯ããæã®ãIE6ã§ãã¾ãåä½ããªãç¶æ³ãæ¹åãã¾ããã
å¿ããããªãèªåã¡ã¢
form_remote_tagã§ãidå±æ§ãè¨å®ãããã
<%= form_remote_tag :update => 'list_update', :submit => 'list_params', :url => {:action => 'filter_on'}, :html => {:id => 'list_form'} %> <%= observe_form :list_form, :update => 'list_update', :submit => 'list_params', :url => {:action => 'list_update'} %>
- :html => {:id=>'list_form'}ã§ãhtmlãªãã·ã§ã³ã®æå®ãå¯è½ã«ãªãã
ã¯ãªãã¯ãããããªã³ã¯æååããå¦çä¸...ãã¨è¡¨ç¤ºããã
<%= link_to_remote 'ãã£ã«ã¿ã¼ã解é¤', {:_update => 'list_update', :submit => 'no_filter_params', :url => {:action => 'filter_off', :filtering => ''}, :loading => "Element.update('filter_cancel', 'ãã£ã«ã¿ã¼ã解é¤ä¸...')", :complete => "Element.update('filter_cancel', 'ãã£ã«ã¿ã¼ã解é¤')"}, :id => 'filter_cancel' %>
- "Element.update('filter_cancel', 'ãã£ã«ã¿ã¼ã解é¤ä¸...')"ã®é¨åã¯ã以ä¸ã®ããã«æ¸ãæãã¦ãOKã
- "$('filter_cancel').firstChild.nodeValue = 'ãã£ã«ã¿ã¼ã解é¤ä¸...'"
- "$('filter_cancel').firstChild.nodeValue += 'ä¸...'"
2ã¤ã®ãããã¯è¦ç´ ããå³å¯ããå·¦å¯ãã§1è¡ã«è¡¨ç¤ºããã
<div class="action"> ãã§ãã¯ããé ç®ãåé¤ </div> <div class="page"> ãã¼ã¸: <å 1 2 3 次> <div> <style> div.action {float: right;} </style>
- float: rightã®ããã«æå®ããã¨ãæå®ããããããã¯ã¯ãã¼ã¸ã®å³ã«é ç½®ãããã
- å·¦ã®ä½ç½é¨åã«ã¯ãç¶ãå 容ãæç»ããããï¼floatã®æå®ããªããã°ãé常ã¯æ¹è¡ããã¦æ¬¡ã®è¡ããæç»ããããï¼
ã¯ã©ã¹å±æ§ã ã追å ããã
def filter_on render :update do |p| p << "Element.addClassName('csv_list', 'filtering')" end end
- æ¸å¼ã¯æ¬¡ã®ããã«ãªããElement.addClassName('æä½å¯¾è±¡ã®idå±æ§', 'classå称')
è¤æ°ã¯ã©ã¹å±æ§ãå©ç¨ãã¦æå®ããã
<table class="list filtering" id="list"> </table> <style> table.list.filtering {border:2px groove #666;} </style>
- htmlã§ã¯ãclass="list filtering"ã®ããã«ãã¯ã©ã¹åãã¹ãã¼ã¹ã§åºåãã
- cssã§ã¯ãtable.list.filteringã®ããã«ãããããä»å ããã¯ã©ã¹åã並ã¹ãã
- table.filtering.listã§ãOKãã¯ã©ã¹åã®é åºã¯é¢ä¿ç¡ãã
- table.listãtable.filteringã§ã¯ãã©ã¡ãããããããããã®å ´åãå¾ã§æå®ããã¹ã¿ã¤ã«ãåªå ããããï¼listãfilteringèªä½ã®åªå é ä½ã¯ååï¼