Add data widget

1346
8
Jump to solution
01-09-2019 01:16 PM
GarethYoung1
New Contributor III

Robert Scheitlin, GISP

Is there a way on the add data widget to have the within map extent toggled off when the widget loads?

Thanks

Gareth

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Gareth,

  In the AddData\search\BBoxOption.js file change the postCreate function:

      postCreate: function() {
        this.inherited(arguments);
        this.bboxToggle.set("checked", false);
      },

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus

Gareth,

  In the AddData\search\BBoxOption.js file change the postCreate function:

      postCreate: function() {
        this.inherited(arguments);
        this.bboxToggle.set("checked", false);
      },
0 Kudos
GarethYoung1
New Contributor III

Robert,

How do you remove the type menu from the add data widget?

Thanks

Gareth

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

Add this css rule:

.search-data-type-options {
  display: none;
}

I take it none of this is clicking with you... What is it you don't understand about adding css rules to hide elements?

GarethYoung1
New Contributor III

Does anyone know how to disable the details option?

I've tried options but it also removes the add option

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

.jimu-widget-add-data .search-pane .item-card .action-bar>a[data-dojo-attach-point="detailsButton"],
.jimu-widget-add-data .secondary-pane .action-bar>a[data-dojo-attach-point="detailsButton"]{
   display: none;
}

GarethYoung1
New Contributor III

Thanks Robert.  That has really helped my understanding as you have to add the item inside square brackets.

GarethYoung1
New Contributor III

Does anyone know how to add the item description to the card in the add data widget?

0 Kudos
GarethYoung1
New Contributor III

Robert,

How do you remove the layers option from the footer of the add data widget?

Gareth

0 Kudos