Primeng - 在选项列表标题中添加按钮

时间:2017-07-17 20:58:39

标签: button primeng picklist

如何在选项列表标题中添加自定义按钮,例如in here? 我正在尝试在Primeng选项列表标题中添加按钮,但它只将字符串作为标题值。 有没有办法在自动生成的标题中添加任何模板(HTML)?

json_data = json.dumps(data)

1 个答案:

答案 0 :(得分:-2)

您可以扩展p-pickList并在扩展模板中添加按钮

  parent_list = os.listdir("Here goes the path for directory")
  count =0
  for child in parent_list:
   if count < 1000:
      print(child)
   else
       break
   count = count+1