<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Placing SearchBar+TimeRangePicker+SubmitButton inline on a custom panel (not splSearchControls-inline)? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18761#M258</link>
    <description>&lt;P&gt;Yes, I've already discovered this wonderful feature! But still getting used to this forum... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2011 20:31:36 GMT</pubDate>
    <dc:creator>greg</dc:creator>
    <dc:date>2011-11-18T20:31:36Z</dc:date>
    <item>
      <title>Placing SearchBar+TimeRangePicker+SubmitButton inline on a custom panel (not splSearchControls-inline)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18757#M254</link>
      <description>&lt;P&gt;I'm developing a custom view and I want to place standard search controls to one of my panels.&lt;/P&gt;

&lt;P&gt;The layout should be something like (this is a separate panel, layed out as panel_row2_col1):&lt;/P&gt;

&lt;P&gt;HtmlText&lt;/P&gt;

&lt;P&gt;PullDown    PullDown    TextEdit&lt;/P&gt;

&lt;P&gt;HtmlText&lt;/P&gt;

&lt;P&gt;SearchEditBox    TimeRangePicker    SubmitButton&lt;/P&gt;

&lt;P&gt;I can assign float=left to the 3 topmost elements so all of them are inline (since they are Sideview controls and support "float" property). But search-related elements are standard Splunk controls and they are always placed in one column, one under another:&lt;/P&gt;

&lt;P&gt;SearchEditBox&lt;BR /&gt;&lt;BR /&gt;
TimeRangePicker&lt;BR /&gt;&lt;BR /&gt;
SubmitButton&lt;/P&gt;

&lt;P&gt;Can I somehow adjust my CSS file (or view stylesheet option) to achieve inline placement of these 3 elements? They should still remain on the same panel with pulldowns.&lt;/P&gt;

&lt;P&gt;Note: I didn't create any application, so all my views are in context of the standard search application. What CSS file should I use then? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18757#M254</guid>
      <dc:creator>greg</dc:creator>
      <dc:date>2020-09-28T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Placing SearchBar+TimeRangePicker+SubmitButton inline on a custom panel (not splSearchControls-inline)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18758#M255</link>
      <description>&lt;P&gt;In the &lt;CODE&gt;&amp;lt;view&amp;gt;&lt;/CODE&gt; tag of your custom view,  add a stylesheet attribute in the formof &lt;CODE&gt;stylesheet="custom.css"&lt;/CODE&gt;.  Then in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/search/appserver/static/&lt;/CODE&gt;,  create a file called &lt;CODE&gt;custom.css&lt;/CODE&gt;. Place your float rules in that custom stylesheet. It'll work great and it'll survive upgrades. &lt;/P&gt;

&lt;P&gt;You could theoretically add the float styles to the search app's application.css file, and thus avoid creating a new file. However this is a bad idea.  Since the search app packages its own application.css, and since the search app is itself packaged in the Splunk download, then whenever you upgrade Splunk, your changes to that application.css file would be overwritten.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/UseCSS"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/UseCSS&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;UPDATE: Whenever you add any new css or js file to the system like this, you have to restart splunkWeb for it to pick it up. "splunk restart splunkWeb" or "splunk restartss" from the CLI,  or just restart the whole server. &lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 07:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18758#M255</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-11-18T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Placing SearchBar+TimeRangePicker+SubmitButton inline on a custom panel (not splSearchControls-inline)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18759#M256</link>
      <description>&lt;P&gt;Thanks, I like the way with the custom css file. &lt;/P&gt;

&lt;P&gt;I have placed there the following rules:&lt;/P&gt;

&lt;P&gt;.SearchBar,&lt;BR /&gt;
.TimeRangePicker,&lt;BR /&gt;
.SubmitButton {&lt;/P&gt;

&lt;P&gt;float:left;&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;but with no effect (still having column-like layout).&lt;BR /&gt;
To apply changes, I usually click the Splunk logo in the top left corner.&lt;/P&gt;

&lt;P&gt;Did I miss something?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 11:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18759#M256</guid>
      <dc:creator>greg</dc:creator>
      <dc:date>2011-11-18T11:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Placing SearchBar+TimeRangePicker+SubmitButton inline on a custom panel (not splSearchControls-inline)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18760#M257</link>
      <description>&lt;P&gt;See update. requires a restart of SplunkWeb to pick up new static files. Also note you can comment on answers rather than posting your answers, which is a little cleaner.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 16:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18760#M257</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-11-18T16:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Placing SearchBar+TimeRangePicker+SubmitButton inline on a custom panel (not splSearchControls-inline)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18761#M258</link>
      <description>&lt;P&gt;Yes, I've already discovered this wonderful feature! But still getting used to this forum... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Placing-SearchBar-TimeRangePicker-SubmitButton-inline-on-a/m-p/18761#M258</guid>
      <dc:creator>greg</dc:creator>
      <dc:date>2011-11-18T20:31:36Z</dc:date>
    </item>
  </channel>
</rss>

