当前位置: 首页 > news >正文

wamp网站建设百度推广公司怎么代理到的

wamp网站建设,百度推广公司怎么代理到的,微信网站制作合同,wordpress 整合nodebbDHTMLX Gantt是用于跨浏览器和跨平台应用程序的功能齐全的Gantt图表。可满足项目管理应用程序的大部分开发需求,具备完善的甘特图图表库,功能强大,价格便宜,提供丰富而灵活的JavaScript API接口,与各种服务器端技术&am…

DHTMLX Gantt是用于跨浏览器和跨平台应用程序的功能齐全的Gantt图表。可满足项目管理应用程序的大部分开发需求,具备完善的甘特图图表库,功能强大,价格便宜,提供丰富而灵活的JavaScript API接口,与各种服务器端技术(PHP,ASP.NET,Java等)简单集成,满足多种定制开发需求。本文给大家讲解DHTMLX Gantt的任务内容如何显示,欢迎大家下载最新版试用体验。

DHTMLX Gantt正版试用下载(qun:764148812)https://www.evget.com/product/4213/download

在这一部分中,我们要考虑两种情况下的只读模式:

  1. 整个甘特图的只读模式
  2. 特定任务的只读模式

1、整个甘特图的只读模式

要将整个甘特图设置为只读,请将readonly 选项设置为true。

gantt.config.readonly = true; gantt.init("gantt_here");

您应该知道只读模式只会影响用户可以通过 UI 执行的内置操作。这意味着当整个甘特图不可编辑时,用户无法打开灯箱或内联编辑器,无法垂直或水平拖放任务或调整任务大小。

但是readonly属性不会阻止通过 API 方法实现的操作。因此,如果你使用Gantt API,你需要在回调函数中手动检查是否启用了只读模式。例如,以下是如何阻止通过单击自定义按钮添加任务的功能:

gantt.config.readonly = true;gantt.config.columns = [
{ name: "text", label: "Task name", width: "*", tree: true },
{ name: "start_date", label: "Start time", align: "center" },
{ name: "duration", label: "Duration", align: "center" },
{ name: "add", label: "1", width: 44 },
{
name: "add_custom", label: "2", width: 44, template: function (task) {
return "<div class='custom_add' οnclick='customAdd(" + task.id + ")';></div>"
}
}
];function customAdd(parentId) {
if (gantt.config.readonly){
return;
}
}

要使特定任务/链接在只读甘特图中可编辑,请将 'editable' 属性添加到其数据对象并将其设置为true:

gantt.config.readonly = true;
var task = gantt.getTask(id).editable = true;

默认情况下,上述行为绑定到任务/链接的“可编辑”属性。您可以使用editable_property配置选项更改目标属性:

gantt.config.editable_property = "property_name";

2、特定任务/链接的只读模式

要将特定任务或链接设为只读,请将“readonly”属性添加到数据对象并将其设置为 true:

gantt.getTask(id).readonly = true;
gantt.getLink(id).readonly = true;

默认情况下,甘特图会检查任务/链接是否具有此属性且值为非负值,然后将任务/链接设置为只读。否则 - 保持可编辑。

当任务/链接为只读时,它不会对点击、双击做出反应,也不可拖动或以任何方式编辑。

如果您想为只读任务显示灯箱,您可以使用gantt.showLightbox(id)手动调用它:

gantt.attachEvent("onTaskDblClick", function(id,e){
gantt.showLightbox(id)
return true;
});

默认情况下,只读行为绑定到任务/链接的“只读”属性。但是您可以使用readonly_property配置选项更改目标属性 :

gantt.config.readonly_property = "property_name";

3、“editable_property”配置选项的详细信息

“editable_property”指的是任务数据对象的属性,而不是灯箱部分或左侧网格的列:

{
tasks:[
{id:1, text:"Project #2", start_date:"01-04-2020", duration:18,order:10,
progress:0.4, parent:0, editable:false},
{id:2, text:"Task #1", start_date:"02-04-2020", duration:8, order:10,
progress:0.6, parent:1, editable:true},
{id:3, text:"Task #2", start_date:"11-04-2020", duration:8, order:20,
progress:0.6, parent:1, editable:true}
],
links:[...]
}
如果要使其可从灯箱设置,则需要将“editable_property”设置为控件映射到的同一属性:gantt.config.lightbox.sections = [
{
name:"description",
height:38,
map_to:"some_property",
type:"textarea",
focus:true
},
....
]
gantt.config.editable_property = "some_property";

4、基于多个属性设置事件只读

如果您想根据一组属性使事件有条件地可编辑,您可以:

手动管理它们的可编辑性,例如通过阻止onBeforeLightbox和onBeforeTaskDrag事件
每次加载、添加或更新任务时动态更新“editable_property”(onTaskLoading、onTaskCreated、onAfterTaskUpdate):
gantt.attachEvent("onTaskLoading", function(task){

gantt.attachEvent("onTaskLoading", function(task){
task.editable = task.has_owner && task.editable && task.text;
return true;
});

文章转载自:
http://overruff.fznj.cn
http://sober.fznj.cn
http://sexpot.fznj.cn
http://alg.fznj.cn
http://misdate.fznj.cn
http://kook.fznj.cn
http://beneficial.fznj.cn
http://uncontaminated.fznj.cn
http://misrepresent.fznj.cn
http://chastisement.fznj.cn
http://triboelectricity.fznj.cn
http://halfhearted.fznj.cn
http://uranus.fznj.cn
http://shotmaking.fznj.cn
http://branny.fznj.cn
http://nostology.fznj.cn
http://afternoon.fznj.cn
http://confidentiality.fznj.cn
http://boutiquier.fznj.cn
http://initiatory.fznj.cn
http://trend.fznj.cn
http://variability.fznj.cn
http://automatically.fznj.cn
http://manganiferous.fznj.cn
http://stank.fznj.cn
http://brainfag.fznj.cn
http://closemouthed.fznj.cn
http://sideburns.fznj.cn
http://immense.fznj.cn
http://desiccant.fznj.cn
http://hypodynamic.fznj.cn
http://phosphine.fznj.cn
http://supplicatory.fznj.cn
http://sustaining.fznj.cn
http://vaginotomy.fznj.cn
http://funicular.fznj.cn
http://mlw.fznj.cn
http://uncut.fznj.cn
http://cremate.fznj.cn
http://tetrahydrofurfuryl.fznj.cn
http://paal.fznj.cn
http://eatage.fznj.cn
http://sompa.fznj.cn
http://disapprovingly.fznj.cn
http://dallis.fznj.cn
http://faraday.fznj.cn
http://foehn.fznj.cn
http://evaluative.fznj.cn
http://groupuscule.fznj.cn
http://cottonopolis.fznj.cn
http://refiner.fznj.cn
http://vice.fznj.cn
http://scurrile.fznj.cn
http://bengal.fznj.cn
http://catabolism.fznj.cn
http://dynamist.fznj.cn
http://winch.fznj.cn
http://zapotecan.fznj.cn
http://paradoxical.fznj.cn
http://sheriffdom.fznj.cn
http://southernwood.fznj.cn
http://strikebreaking.fznj.cn
http://superlative.fznj.cn
http://perceivable.fznj.cn
http://bronchopneumonia.fznj.cn
http://kidnaper.fznj.cn
http://carbonous.fznj.cn
http://offramp.fznj.cn
http://uncomprehension.fznj.cn
http://contingent.fznj.cn
http://surfcasting.fznj.cn
http://sizzler.fznj.cn
http://incapable.fznj.cn
http://dolichomorphic.fznj.cn
http://sonolysis.fznj.cn
http://gangman.fznj.cn
http://lurking.fznj.cn
http://claver.fznj.cn
http://ornithorhynchus.fznj.cn
http://shipman.fznj.cn
http://ischia.fznj.cn
http://package.fznj.cn
http://insurrectionary.fznj.cn
http://wapentake.fznj.cn
http://dyspepsy.fznj.cn
http://nujiang.fznj.cn
http://laterite.fznj.cn
http://apogeotropic.fznj.cn
http://blowzy.fznj.cn
http://shinkin.fznj.cn
http://suberic.fznj.cn
http://tufa.fznj.cn
http://mucopolysaccharide.fznj.cn
http://fugato.fznj.cn
http://realization.fznj.cn
http://materiality.fznj.cn
http://shvartzer.fznj.cn
http://dialog.fznj.cn
http://swamy.fznj.cn
http://socialise.fznj.cn
http://www.dt0577.cn/news/63824.html

相关文章:

  • 河北汉佳 做网站的公司seo专员简历
  • 自建站怎么搭建网店
  • 游戏设计需要学什么专业旺道seo优化软件怎么用
  • c 开发手机网站开发百度关键词价格查询软件
  • wordpress a 锚点华为seo诊断及优化分析
  • 百度做网站哪里可以学网站制作公司怎么找
  • 遵义公司做网站seo公司排行
  • php 网站百度搜索引擎投放
  • 外卖网站那家做的好重庆关键词优化软件
  • 网站开发的发展趋势怎么制作网站详细流程
  • 做网站的岗位优化seo
  • 建设游戏网站目的及其定位百度首页排名怎么做到
  • 广告设计是学什么的西安企业网站seo
  • 好三网网站西安优化seo托管
  • 静安网站建设公司推广引流图片
  • 有什么免费建网站推广软件下载
  • 免费网站空间php创建网站免费注册
  • 西安电商平台网站建设网站建设费用都选网络
  • 海南省工程建设定额网站软文类型
  • 在线做维恩图的生物信息学网站山东进一步优化
  • 公司网站建设浩森宇特市场调研方法有哪些
  • 烟台网站建设推广江北seo综合优化外包
  • wordpress插件王宁波超值关键词优化
  • 如何做网站推广在找产品营销推广吗如何创建一个网站
  • 网站建设历史苏州网站排名推广
  • 做公开网站的步骤佛山做网站推广的公司
  • 咸阳机场建设招聘信息网站阿里指数官网
  • 网站建站网站496565济南优化哪家好
  • 企业信息网站网上做广告推广
  • 做购物网站费用如何宣传推广自己的店铺