Menu icon Foundation

Coder

My Posts

  • 4
    Replies
  • Foundation 6 auto-width

    By felek

    foundation6

    Hello I want to use mixin from foundation 6 and it work exept last element. I cheek on mixin code and see line: width: percentage(1 / $i); It means 100% of width of element. but offen when You use width:calc( 100% *1/3) of parent width last element fal... (continued)

    Last Reply by felek over 3 years ago


  • 7
    Replies
  • Foundation 6 data-dropdown

    By felek

    dropdown

    Hello i want to create dropdown and fire it by javascript.   <div class="dropdown-pane top" id="example-dropdown2"> Just some junk that needs to be said. Or not. Your choice. </div> Than i want to fire it ... (continued)

    Last Reply by Brian Tan over 3 years ago


  • 1
    Reply
  • add $breakpoint-classes to foundation 6

    By felek

    breakpoint

    Hello I want to add breakpoint class in foundation 6 i done it by adding in settings file: $breakpoint-classes: (small medium large xxlarge); But now when i use it in off canvas menu like so: Button is not working when i change to default large... (continued)

    Last Reply by Jacky888 about 1 year ago


My Comments

felek commented on felek's post over 3 years

Hello i want to create simple ul li menu but numbers of li might be defrent :)

felek commented on felek's post over 3 years

Yes I add content by ajax.
and i use ID or class name of element, or parent or other.
Point is dropdown is showing after load ajax, but its calculating top left totaly wrong. Thats my problem.

felek commented on felek's post over 3 years

Ok. Also when i add entire dropdown markup via ajax to a DOM. 
 
$.ajax({
url: "html_template.html",
data:'html',
context:where
}).done(function(data) {
$( this ).prepend(data).find('.dropdown-pane').foundation();
});
i get error
Tried to initialize dropdown on an element that already has a Foundation plugin.
But when i not do this element not showing.
Also after click dropdown element is not posytion corectly it takes some random top and left.
Is there any way to foundation calculate top left correctly ?
 

felek commented on felek's post over 3 years

Hi thx for response. When I add data-dropdown to code i get error, unless i add button to a DOM.
I want to create HTML element and than use it via JS but not instant put button unless is required.
 
 

Posts Followed

No Content

Following

    No Content

Followers

My Posts




My Comments

You commented on felek's post over 3 years

Hello i want to create simple ul li menu but numbers of li might be defrent :)

You commented on felek's post over 3 years

Yes I add content by ajax.
and i use ID or class name of element, or parent or other.
Point is dropdown is showing after load ajax, but its calculating top left totaly wrong. Thats my problem.

You commented on felek's post over 3 years

Ok. Also when i add entire dropdown markup via ajax to a DOM. 
 
$.ajax({
url: "html_template.html",
data:'html',
context:where
}).done(function(data) {
$( this ).prepend(data).find('.dropdown-pane').foundation();
});
i get error
Tried to initialize dropdown on an element that already has a Foundation plugin.
But when i not do this element not showing.
Also after click dropdown element is not posytion corectly it takes some random top and left.
Is there any way to foundation calculate top left correctly ?
 

You commented on felek's post over 3 years

Hi thx for response. When I add data-dropdown to code i get error, unless i add button to a DOM.
I want to create HTML element and than use it via JS but not instant put button unless is required.
 
 

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content