Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我第一次使用 PrimeNg 日历并且我被这个东西困住了,我需要使用这个日历来显示/选择一些默认的初始日期,这些日期是我从后端获取的日期数组。我想向用户显示这些日期,然后他们可以进一步单击默认选择/显示的日期。提前致谢
根据文档,您可以使用的唯一选项是defaultDate接受单个选项Date
defaultDate
Date
defaultDate: Date: null: 如果该字段为空,则设置在首次打开时突出显示的日期。
您不能传递需要在初始化时选择的日期数组,只有接受数组的 Primeng Calendar 选项是