ngPicky颜色选择器问题

时间:2015-10-13 08:09:01

标签: php html angularjs

我正在尝试使用ngPicky colour picker。我不确定如何定义指令或避免使用php脚本时出现的错误。

  

解析错误:语法错误,意外'颜色'(T_STRING),期待','或';'在第834行的... / themes / Silk_af_v155 / index.template.php

825: }
826: 
827: function template_colour_picker()
828: 
829: {
830: echo'
831:     <div ng-app="myApp" ng-controller="ngPicky" ng-model="color">
832:     <input type="picker" ng-model="color">
833:      <div class="category_header forum_category" style="background:{{color | toHex}};"></div>

834:   <picker color='color'></picker>';

835: }
836: 
837: template_colour_picker();

按照第一个答案中给出的建议后

http://adminforum.in/index.php?thread/1079-colour-picker-for-elkarte/&postID=5438#post5438

修改

检查元素

<title>Admin Forum - Index</title>
<link rel="stylesheet" href="http://localhost/elktest/themes/Silk_af_v155/css/index.css" id="index.css">
<link rel="stylesheet" href="http://localhost/elktest/themes/Silk_af_v155/css//ng-picky.css" id="ng-picky.css">
<link rel="stylesheet" href="http://localhost/elktest/themes/Silk_af_v155/css//af.css" id="af.css">
<link rel="stylesheet" href="http://localhost/elktest/themes/default/css/font-awesome.min.css" id="font-awesome.min.css">
<link rel="stylesheet" href="http://localhost/elktest/themes/Silk_af_v155/css/_silk/index_silk.css" id="index_silk.css">
<link rel="stylesheet" href="http://localhost/elktest/themes/default/css/portal.css" id="portal.css">
<link rel="stylesheet" href="http://localhost/elktest/themes/Silk_af_v155/css/_silk/custom_silk.css" id="custom_silk.css">
<div class="category_header forum_category" style="background:{{color | toHex}};"></div><style>

1 个答案:

答案 0 :(得分:0)

尝试使用<picker color="color"></picker>